CI: a newer push supersedes older runs (concurrency)

52a9112 · Gabe Morell · 2026-10-27 04:07

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

Files changed

modified .forgejo/workflows/image.yml
+7 −0
@@ -13,6 +13,13 @@ on:
13 13 branches: [master]
14 14 workflow_dispatch:
15 15
16 +# A newer push supersedes this run: on a branch or PR the run in
17 +# progress is cancelled; on master it finishes, and only a run still
18 +# waiting is replaced.
19 +concurrency:
20 + group: ${{ github.workflow }}-${{ github.ref }}
21 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
22 +
16 23 jobs:
17 24 image:
18 25 if: github.server_url != 'https://github.com'
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
@@ -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/docker-build-push.yml
+7 −0
@@ -9,6 +9,13 @@ env:
9 9 REGISTRY: ghcr.io
10 10 IMAGE_NAME: neiam/mutant-operator
11 11
12 +# A newer push supersedes this run: on a branch or PR the run in
13 +# progress is cancelled; on master it finishes, and only a run still
14 +# waiting is replaced.
15 +concurrency:
16 + group: ${{ github.workflow }}-${{ github.ref }}
17 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
18 +
12 19 jobs:
13 20 # ghcr.io from GitHub only. The forge reads .github/workflows too, and
14 21 # there the ghcr.io login 403s; .forgejo/workflows/image.yml publishes

Parents: 5b60078