From 4115af5133a4c78fda59afdb9016e78601ed3821 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Wed, 11 Dec 2024 16:43:27 +0100 Subject: [PATCH] BUG: GHA: Do not cancel-in-progress same base SHA Grouping based on github.event.pull_request.head.sha, i.e. "the commit ID for the last commit to the head branch of the pull request" only cancels commits with the same SHA. With this PR, on-going workflows of the same PR would be cancelled. --- .github/workflows/macos-arm.yml | 2 +- .github/workflows/pixi.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos-arm.yml b/.github/workflows/macos-arm.yml index 8edc051df4ea..e1f24114c980 100644 --- a/.github/workflows/macos-arm.yml +++ b/.github/workflows/macos-arm.yml @@ -24,7 +24,7 @@ on: - 'Utilities/Maintenance/**' concurrency: - group: '${{ github.workflow }}@${{ github.event.pull_request.head.sha || github.head_ref || github.ref }}' + group: '${{ github.workflow }}@${{ github.head_ref || github.ref }}' cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: diff --git a/.github/workflows/pixi.yml b/.github/workflows/pixi.yml index 5f3f114438d5..24605d4e9092 100644 --- a/.github/workflows/pixi.yml +++ b/.github/workflows/pixi.yml @@ -24,7 +24,7 @@ on: - 'Utilities/Maintenance/**' concurrency: - group: '${{ github.workflow }}@${{ github.event.pull_request.head.sha || github.head_ref || github.ref }}' + group: '${{ github.workflow }}@${{ github.head_ref || github.ref }}' cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: