Skip to content

Commit 2f67b12

Browse files
authored
ci/weekly: Only run scheduled jobs on the upstream repository (#435)
With the workflow being to create a fork in order to contribute to this project, this fork shouldn't automatically run scheduled linting jobs on the main branch (wherever that happened to be when the fork was cloned/created) and bothering the fork-er with it if it's non-compliant.
1 parent f85dbb8 commit 2f67b12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/weekly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
weekly-clippy-beta:
1212
name: Clippy Beta
1313
runs-on: ubuntu-latest
14+
if: github.repository_owner == 'getsentry'
1415

1516
steps:
1617
- uses: actions/checkout@v2
@@ -35,6 +36,7 @@ jobs:
3536
weekly-audit:
3637
name: Audit
3738
runs-on: ubuntu-latest
39+
if: github.repository_owner == 'getsentry'
3840

3941
steps:
4042
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)