ci: concurrency-cancel on same-branch pushes #43
1 changed files with 7 additions and 0 deletions
|
|
@ -4,6 +4,13 @@ on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
# Cancel any running CI for the same PR or branch when a new commit
|
||||||
|
# lands. The shared runner has capacity=1, so stacking obsolete runs
|
||||||
|
# just pushes useful ones to the back of the queue.
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue