CI: a newer push supersedes older runs (concurrency)

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

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

Files changed

modified .forgejo/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: self-hosted
modified .forgejo/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: self-hosted
modified .forgejo/workflows/image.yml
+7 −0
@@ -10,6 +10,13 @@ on:
10 10 push:
11 11 branches: [master]
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 image:
15 22 runs-on: self-hosted

Parents: 0a1a73a