CI: a newer push supersedes older runs (concurrency)

cfbf13a · Gabe Morell · 2026-10-27 04:08

5 files +21 -0
Message
{commit_body(@commit)}

Files changed

modified .github/workflows/audit.yml
+7 −0
@@ -26,6 +26,13 @@ on:
26 26 permissions:
27 27 contents: read
28 28
29 +# A newer push supersedes this run: on a branch or PR the run in
30 +# progress is cancelled; on master it finishes, and only a run still
31 +# waiting is replaced.
32 +concurrency:
33 + group: ${{ github.workflow }}-${{ github.ref }}
34 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
35 +
29 36 jobs:
30 37 osv:
31 38 runs-on: arc-runner-set
modified .github/workflows/dependency-updates.yml
+7 −0
@@ -19,6 +19,13 @@ permissions:
19 19 contents: write # push the deps/security-cargo branch
20 20 pull-requests: write # open, refresh and close its pull request
21 21
22 +# A newer push supersedes this run: on a branch or PR the run in
23 +# progress is cancelled; on master it finishes, and only a run still
24 +# waiting is replaced.
25 +concurrency:
26 + group: ${{ github.workflow }}-${{ github.ref }}
27 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
28 +
22 29 jobs:
23 30 update:
24 31 runs-on: arc-runner-set
modified .github/workflows/rust-ci.yml
+7 −0
@@ -10,6 +10,13 @@ on:
10 10 env:
11 11 CARGO_TERM_COLOR: always
12 12
13 +# A newer push supersedes this run: on a branch or PR the run in
14 +# progress is cancelled; on master it finishes, and only a run still
15 +# waiting is replaced.
16 +concurrency:
17 + group: ${{ github.workflow }}-${{ github.ref }}
18 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
19 +
13 20 jobs:
14 21 build:
15 22 strategy:

Parents: b4b277e