Skip to content

Commit d22a8cc

Browse files
feat(ci): auto-cancel superseded workflow runs
Add concurrency group to automatically cancel in-progress workflow runs when a new push is made to the same branch. This prevents wasted CI resources and provides faster feedback on the latest changes. Concurrency group: workflow name + git ref (branch) Behavior: New push cancels any in-progress runs for that branch
1 parent c2d9873 commit d22a8cc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [main, tauri-migration]
88

9+
# Cancel in-progress runs when a new push supersedes them
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
# Frontend E2E tests with Playwright
1116
playwright-tests:

0 commit comments

Comments
 (0)