CI: a newer push supersedes older runs (concurrency)

bebafb9 · Gabe Morell · 2026-10-27 04:07

8 files +28 -0
Message
{commit_body(@commit)}

Files changed

modified .forgejo/workflows/image.yml
+7 −0
@@ -18,6 +18,13 @@ on:
18 18 tags: ['v*']
19 19 workflow_dispatch:
20 20
21 +# A newer push supersedes this run: on a branch or PR the run in
22 +# progress is cancelled; on master it finishes, and only a run still
23 +# waiting is replaced.
24 +concurrency:
25 + group: ${{ github.workflow }}-${{ github.ref }}
26 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
27 +
21 28 jobs:
22 29 test:
23 30 if: github.server_url != 'https://github.com'
modified .github/workflows/audit.yml
+7 −0
@@ -27,6 +27,13 @@ on:
27 27 permissions:
28 28 contents: read
29 29
30 +# A newer push supersedes this run: on a branch or PR the run in
31 +# progress is cancelled; on master it finishes, and only a run still
32 +# waiting is replaced.
33 +concurrency:
34 + group: ${{ github.workflow }}-${{ github.ref }}
35 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
36 +
30 37 jobs:
31 38 osv:
32 39 runs-on: arc-runner-set
modified .github/workflows/ci.yml
+7 −0
@@ -6,6 +6,13 @@ on:
6 6 tags: ["v*"]
7 7 pull_request:
8 8
9 +# A newer push supersedes this run: on a branch or PR the run in
10 +# progress is cancelled; on master it finishes, and only a run still
11 +# waiting is replaced.
12 +concurrency:
13 + group: ${{ github.workflow }}-${{ github.ref }}
14 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
15 +
9 16 jobs:
10 17 test:
11 18 # Self-hosted ARC runners (same as ../angler). Swap for `ubuntu-latest`
modified .github/workflows/dependency-updates.yml
+7 −0
@@ -19,6 +19,13 @@ permissions:
19 19 contents: write # push the deps/security-hex 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

Parents: 063e886