From 4ba770cbba72c00460233bc2ad8eaea5b55cfc81 Mon Sep 17 00:00:00 2001 From: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com> Date: Mon, 13 May 2024 17:49:08 +0300 Subject: [PATCH] Update concurrency group for community label workflow (#47355) --- .github/workflows/community-label.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/community-label.yml b/.github/workflows/community-label.yml index 29f82878bd6..3ab9b434427 100644 --- a/.github/workflows/community-label.yml +++ b/.github/workflows/community-label.yml @@ -7,7 +7,9 @@ on: types: [opened] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + # For pull_request_target, cancel concurrent jobs with the same type and branch. + # Don't cancel for other events, by grouping on the unique run_id. + group: community-label-${{ github.event_name }}-${{ github.event.action }}-${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.ref || github.run_id }} cancel-in-progress: true permissions: {}