CI: a newer push supersedes older runs (concurrency)

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

3 files +7 -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

Parents: ab5913a