CI: a newer push supersedes older runs (concurrency)

458328c · Gabe Morell · 2026-10-27 04:07

4 files +14 -0
Message
{commit_body(@commit)}

Files changed

modified .github/workflows/release.yml
+7 −0
@@ -15,6 +15,13 @@ permissions:
15 15 contents: write
16 16 packages: write
17 17
18 +# A newer push supersedes this run: on a branch or PR the run in
19 +# progress is cancelled; on master it finishes, and only a run still
20 +# waiting is replaced.
21 +concurrency:
22 + group: ${{ github.workflow }}-${{ github.ref }}
23 + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
24 +
18 25 jobs:
19 26 create-release:
20 27 runs-on: ubuntu-latest
modified .github/workflows/validate.yml
+7 −0
@@ -6,6 +6,13 @@ on:
6 6 pull_request:
7 7 branches: [ main, master, develop ]
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 validate:
11 18 runs-on: ubuntu-latest

Parents: fe8dc15