From 1545d431fab66094922641d470a687d2408f34b5 Mon Sep 17 00:00:00 2001 From: "Eric T. Johnson" Date: Fri, 10 May 2024 16:42:33 -0400 Subject: [PATCH] Switch to github.head_ref for concurrency key It looks like `github.ref` points to the target branch when triggered by `pull_request_target`, while `github.head_ref` is always the source branch. --- .github/workflows/check-labels.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-labels.yaml b/.github/workflows/check-labels.yaml index c73f323c56..5e8dcdb7a8 100644 --- a/.github/workflows/check-labels.yaml +++ b/.github/workflows/check-labels.yaml @@ -8,7 +8,7 @@ on: types: [opened, synchronize, labeled, unlabeled] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.head_ref }} cancel-in-progress: true jobs: