Skip to content

Commit

Permalink
CI: Avoid running scheduled jobs on forks (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 authored Nov 23, 2024
1 parent 11f0f2e commit 1eefa74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
release-plz-release:
if: github.repository_owner == 'rust-lang'
name: Release-plz release
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/regenerate-target-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
regenerate:
if: github.repository_owner == 'rust-lang'
name: Regenerate target info & Open Pull Request if necessary
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/regenerate-windows-sys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
regenerate:
if: github.repository_owner == 'rust-lang'
name: Regenerate windows sys bindings & Open Pull Request if necessary
runs-on: ubuntu-latest
steps:
Expand All @@ -20,7 +21,7 @@ jobs:
- name: Create lockfile
run: cargo update

- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: 'true'
Expand Down

0 comments on commit 1eefa74

Please sign in to comment.