Skip to content

Commit 8a90cbc

Browse files
committed
ci: add concurrency group (cancel in-flight runs on same ref, preserve tags)
1 parent dc6a265 commit 8a90cbc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
pull_request:
88
workflow_dispatch:
99

10+
# Auto-cancel in-flight runs when a new push lands on the same ref.
11+
# Tag builds (refs/tags/*) get a unique-per-run group so release runs
12+
# never cancel each other.
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ startsWith(github.ref, 'refs/tags/') && github.run_id || github.ref }}
15+
cancel-in-progress: true
16+
1017
env:
1118
ROOT: "${{ github.workspace }}"
1219
SCRIPTS: "${{ github.workspace }}/.github/scripts"

0 commit comments

Comments
 (0)