Skip to content

Commit 9610a2e

Browse files
committed
fix(ci): use PR head SHA for concurrency group
github.sha is a temporary merge commit for pull_request events, so push and pull_request for the same commit got different keys. Use pull_request.head.sha (falls back to github.sha for push events) to correctly deduplicate.
1 parent 269abbd commit 9610a2e

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.sha }}
10+
group: ci-${{ github.event.pull_request.head.sha || github.sha }}
1111
cancel-in-progress: true
1212

1313
jobs:

0 commit comments

Comments
 (0)