CI: a newer push supersedes older runs (concurrency)

6f452af · Gabe Morell · 2026-10-27 04:07

3 files +7 -0
Message
{commit_body(@commit)}

Files changed

modified .forgejo/workflows/firmware.yml
+7 −0
@@ -9,6 +9,13 @@ on:
9 9 branches: [master]
10 10 tags: ['v*']
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 firmware:
14 21 # No `container:` — the compiler runs in one nested `docker run` instead.

Parents: 9b280d6