Skip to content

Commit f087899

Browse files
[Github] Fix concurrency groups for premerge
According to https://docs.github.com/en/rest/using-the-rest-api/github-event-types?apiVersion=2022-11-28, When we look at the push event payload, github.event.push.head is a string containing the SHA. This is currently causing new commits on main to cancel the premerge pipeline of older commits.
1 parent a176669 commit f087899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/premerge.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: github.repository_owner == 'llvm'
1717
runs-on: llvm-premerge-linux-runners
1818
concurrency:
19-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.push.head.sha }}
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.push.head }}
2020
cancel-in-progress: true
2121
container:
2222
image: ghcr.io/llvm/ci-ubuntu-22.04:latest

0 commit comments

Comments
 (0)