Skip to content

Commit 96ff05b

Browse files
authored
maint: do not run scheduled builds on forks
See https://github.com/orgs/community/discussions/16109 for further discussion. For now, it just adds if switchs to each job.
1 parent 065c2b6 commit 96ff05b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ concurrency:
1818

1919
jobs:
2020
job_metadata:
21+
if: github.repository == 'nipreps/niworkflows'
2122
runs-on: ubuntu-latest
2223
outputs:
2324
commit_message: ${{ steps.get_commit_message.outputs.commit_message }}
@@ -49,6 +50,7 @@ jobs:
4950
echo version=$VERSION | tee -a $GITHUB_OUTPUT
5051
5152
build:
53+
if: github.repository == 'nipreps/niworkflows'
5254
runs-on: ubuntu-latest
5355
steps:
5456
- uses: actions/checkout@v3
@@ -70,6 +72,7 @@ jobs:
7072
path: dist/
7173

7274
get_data:
75+
if: github.repository == 'nipreps/niworkflows'
7376
runs-on: ubuntu-latest
7477
defaults:
7578
run:
@@ -246,6 +249,7 @@ jobs:
246249
name: Submit to CodeCov
247250

248251
flake8:
252+
if: github.event_name != 'schedule'
249253
runs-on: ubuntu-latest
250254
steps:
251255
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)