CI: a newer push supersedes older runs (concurrency)

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

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

Files changed

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

Parents: f89a4b5