CI: a newer push supersedes older runs (concurrency)

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

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

Files changed

modified .github/workflows/audit.yml
+7 −0
@@ -23,6 +23,13 @@ on:
23 23 permissions:
24 24 contents: read
25 25
26 +# A newer push supersedes this run: on a branch or PR the run in
27 +# progress is cancelled; on master it finishes, and only a run still
28 +# waiting is replaced.
29 +concurrency:
30 + group: ${{ github.workflow }}-${{ github.ref }}
31 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
32 +
26 33 jobs:
27 34 osv:
28 35 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
@@ -12,6 +12,13 @@ env:
12 12 REGISTRY: ghcr.io
13 13 IMAGE_NAME: ${{ github.repository }}
14 14
15 +# A newer push supersedes this run: on a branch or PR the run in
16 +# progress is cancelled; on master it finishes, and only a run still
17 +# waiting is replaced.
18 +concurrency:
19 + group: ${{ github.workflow }}-${{ github.ref }}
20 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
21 +
15 22 jobs:
16 23 build:
17 24 strategy:

Parents: 16bd219