From cbd49601275f7569b060e6e1ee3154024783d693 Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Wed, 8 Feb 2023 07:09:24 -0500 Subject: Fix the concurrency group name for PR labeler workflow. (#14460) Instead of flagging on the git ref for the run, flag on the repository ID and PR number. This ensures that previous runs get cancelled only for the correct PR when a new run is triggered. This should fix the seemingly random cases of PR labeler runs being cancelled for no apparent reason on our PRs. --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/labeler.yml') diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 2b8b41fcb0..a1e3b52fee 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -4,7 +4,7 @@ name: Pull Request Labeler on: pull_request_target: null concurrency: - group: pr-label-${{ github.ref }} + group: pr-label-${{ github.repository_id }}-${{ github.event.pull_request.number }} cancel-in-progress: true jobs: labeler: -- cgit v1.2.3