From a1e94aa439fad231327b7dbe9b12037c8339cfe6 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Thu, 9 Apr 2026 19:47:30 -0500 Subject: [PATCH] fix(ci): add concurrency group to Check PR Labels workflow (#5032) --- .github/workflows/main-push-changelog.yml | 4 ++++ .github/workflows/pr_enforce_labels.yml | 11 +++++++++++ .github/workflows/pull-request-target.yml | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/.github/workflows/main-push-changelog.yml b/.github/workflows/main-push-changelog.yml index 09446c50b..da161e44e 100644 --- a/.github/workflows/main-push-changelog.yml +++ b/.github/workflows/main-push-changelog.yml @@ -39,6 +39,10 @@ jobs: fromTag: ${{ steps.last_prod_tag.outputs.tag }} toTag: ${{ github.sha }} outputFile: main-push-changelog.md + fetchViaCommits: true + fetchReviewers: false + fetchReleaseInformation: false + fetchReviews: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr_enforce_labels.yml b/.github/workflows/pr_enforce_labels.yml index 28e9f8b26..fa68a597b 100644 --- a/.github/workflows/pr_enforce_labels.yml +++ b/.github/workflows/pr_enforce_labels.yml @@ -4,12 +4,23 @@ on: pull_request: types: [edited, labeled] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + permissions: pull-requests: read contents: read jobs: check-label: + # Skip bot PRs — they already have labels from the workflows/bots that create them + if: >- + github.event.pull_request.user.login != 'renovate[bot]' && + github.event.pull_request.user.login != 'github-actions[bot]' && + github.event.pull_request.user.login != 'dependabot[bot]' && + github.event.pull_request.head.ref != 'scheduled-updates' && + github.event.pull_request.head.ref != 'l10n_main' runs-on: ubuntu-24.04-arm steps: - name: Check for PR labels diff --git a/.github/workflows/pull-request-target.yml b/.github/workflows/pull-request-target.yml index 611aad3aa..d37cecf43 100644 --- a/.github/workflows/pull-request-target.yml +++ b/.github/workflows/pull-request-target.yml @@ -5,6 +5,10 @@ on: # Do not execute arbitrary code on this workflow. # See warnings at https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: labeler: permissions: