From 4a7673ddf2377784c1c7f11edcfa3ddb54e702a0 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Tue, 17 Dec 2024 06:47:15 +0000 Subject: [PATCH] [Github] Fix premerge concurrency cancellation This should actually fix the problem as I validated that github.sha returns an actual value by running a workflow in a test repo. I'm not sure why the existing value doesn't work, but it returns nothing. --- .github/workflows/premerge.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml index d002e6504701..7a9762812cc1 100644 --- a/.github/workflows/premerge.yaml +++ b/.github/workflows/premerge.yaml @@ -16,7 +16,7 @@ jobs: if: github.repository_owner == 'llvm' runs-on: llvm-premerge-linux-runners concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.push.head }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: true container: image: ghcr.io/llvm/ci-ubuntu-22.04:latest