Skip to content

Commit 1eefa74

Browse files
authored
CI: Avoid running scheduled jobs on forks (#1302)
1 parent 11f0f2e commit 1eefa74

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
release-plz-release:
14+
if: github.repository_owner == 'rust-lang'
1415
name: Release-plz release
1516
runs-on: ubuntu-latest
1617
steps:

.github/workflows/regenerate-target-info.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
regenerate:
10+
if: github.repository_owner == 'rust-lang'
1011
name: Regenerate target info & Open Pull Request if necessary
1112
runs-on: ubuntu-latest
1213
steps:

.github/workflows/regenerate-windows-sys.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
regenerate:
10+
if: github.repository_owner == 'rust-lang'
1011
name: Regenerate windows sys bindings & Open Pull Request if necessary
1112
runs-on: ubuntu-latest
1213
steps:
@@ -20,7 +21,7 @@ jobs:
2021
2122
- name: Create lockfile
2223
run: cargo update
23-
24+
2425
- uses: Swatinem/rust-cache@v2
2526
with:
2627
cache-all-crates: 'true'

0 commit comments

Comments
 (0)