Skip to content

Commit ad664ce

Browse files
committed
ci: cancel previous workflow runs on PR updates
Add concurrency group configuration to the CI workflow to automatically cancel outdated runs when a PR receives new commits or is force-pushed. This prevents wasting CI resources on superseded code.
1 parent 8e6b69d commit ad664ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
default: true
1515
type: boolean
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: true
20+
1721
permissions: read-all
1822

1923
jobs:

0 commit comments

Comments
 (0)