Skip to content

Commit e371573

Browse files
committed
Don't run CI jobs for both 'push' and 'pull_request' event
when the PR branch in the repository itself.
1 parent 604563f commit e371573

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ defaults:
99
shell: bash
1010
jobs:
1111
test:
12+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1213
strategy:
1314
fail-fast: false
1415
matrix:
@@ -67,7 +68,9 @@ jobs:
6768
if: matrix.versions != 'minimal'
6869
run: |
6970
hatch run +py=${{matrix.python}} integration:test
71+
7072
style:
73+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
7174
runs-on: ubuntu-latest
7275
steps:
7376
- name: Download source
@@ -104,6 +107,7 @@ jobs:
104107
run: hatch run lint:spelling
105108

106109
package:
110+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
107111
runs-on: ubuntu-latest
108112
steps:
109113
- uses: actions/checkout@v6

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- cron: '0 6 * * 6'
77
jobs:
88
build:
9+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Download source

0 commit comments

Comments
 (0)