Skip to content

Commit

Permalink
Rollup merge of #113029 - Kobzol:ci-fork-update, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
CI: do not run Bump dependencies workflow on forks

I haven't found a prettier way of doing this. We can possibly only use the condition on the `pr` job (to just disallow the creation of the PR), or only on the `not-waiting-on-bors` step, as if it doesn't run, the following job (probably) also shouldn't run.

Fixes: https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/.22Weekly.20cargo.20update.22.20on.20forks

r? `@Mark-Simulacrum`
  • Loading branch information
TaKO8Ki authored Jun 25, 2023
2 parents 019f43e + cb06c97 commit f948ce7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ env:

jobs:
not-waiting-on-bors:
if: github.repository_owner == 'rust-lang'
name: skip if S-waiting-on-bors
runs-on: ubuntu-latest
steps:
Expand All @@ -43,6 +44,7 @@ jobs:
fi
update:
if: github.repository_owner == 'rust-lang'
name: update dependencies
needs: not-waiting-on-bors
runs-on: ubuntu-latest
Expand Down Expand Up @@ -76,6 +78,7 @@ jobs:
retention-days: 1

pr:
if: github.repository_owner == 'rust-lang'
name: amend PR
needs: update
runs-on: ubuntu-latest
Expand Down

0 comments on commit f948ce7

Please sign in to comment.