ci(reviewers): cancel redundant reviewer assignment runs per PR #39404

Problem: The reviewer assignment workflow can run multiple times for
the same PR.

Solution: Ensure only the newest review-assignment run continues with
workflow concurrency.
This commit is contained in:
Barrett Ruth
2026-04-25 13:49:39 -04:00
committed by GitHub
parent 1aeaa61bcf
commit 3d96095a0f

View File

@@ -6,6 +6,10 @@ on:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
request-reviewer:
if: github.event.pull_request.state == 'open' && github.event.pull_request.draft == false && !endsWith(github.actor, '[bot]')