Skip to content

Commit 269abbd

Browse files
committed
fix(ci): use commit SHA for concurrency group
PR number vs ref gave different keys for push and pull_request events on the same commit. Using SHA ensures both triggers for the same commit share a group, so one gets cancelled.
1 parent 74ec352 commit 269abbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [develop, main]
88

99
concurrency:
10-
group: ci-${{ github.event.pull_request.number || github.ref }}
10+
group: ci-${{ github.sha }}
1111
cancel-in-progress: true
1212

1313
jobs:

0 commit comments

Comments
 (0)