CI: a newer push supersedes older runs (concurrency)

f06ce3a · Gabe Morell · 2026-10-27 04:06

9 files +35 -0
Message
{commit_body(@commit)}

Files changed

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

Parents: 8126e1c