CI: a newer push supersedes older runs (concurrency)

670854c · Gabe Morell · 2026-10-27 04:07

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

Files changed

modified .github/workflows/audit.yml
+7 −0
@@ -24,6 +24,13 @@ on:
24 24 permissions:
25 25 contents: read
26 26
27 +# A newer push supersedes this run: on a branch or PR the run in
28 +# progress is cancelled; on master it finishes, and only a run still
29 +# waiting is replaced.
30 +concurrency:
31 + group: ${{ github.workflow }}-${{ github.ref }}
32 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
33 +
27 34 jobs:
28 35 osv:
29 36 runs-on: arc-runner-set
modified .github/workflows/dependency-updates.yml
+7 −0
@@ -20,6 +20,13 @@ permissions:
20 20 contents: write # push the deps/security-cargo branch
21 21 pull-requests: write # open, refresh and close its pull request
22 22
23 +# A newer push supersedes this run: on a branch or PR the run in
24 +# progress is cancelled; on master it finishes, and only a run still
25 +# waiting is replaced.
26 +concurrency:
27 + group: ${{ github.workflow }}-${{ github.ref }}
28 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
29 +
23 30 jobs:
24 31 update:
25 32 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: 7e44883