From 9b6438e93682cb5c2fab835f4e49084118ab1106 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 18 May 2026 18:19:22 +0100 Subject: [PATCH] Tweak workflow --- .github/workflows/pr-checks.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 99940cddf..55ad7d56a 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -29,6 +29,10 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 + concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} + group: pr-checks-unit-tests-${{ github.ref }}-${{ github.event_name }}-${{ matrix.os }}-node${{ matrix['node-version'] }} + steps: - name: Prepare git (Windows) if: runner.os == 'Windows' @@ -70,7 +74,7 @@ jobs: # These checks do not need to be run as part of the same matrix that we use for the `unit-tests` # job. pr-checks: - name: PR checks + name: PR Checks if: github.triggering_actor != 'dependabot[bot]' permissions: contents: read @@ -78,6 +82,10 @@ jobs: runs-on: ubuntu-slim timeout-minutes: 10 + concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} + group: pr-checks-pr-checks-${{ github.ref }}-${{ github.event_name }} + steps: - name: Checkout repository uses: actions/checkout@v6 @@ -103,6 +111,8 @@ jobs: run: npx tsx --test - name: Check repo size + # Forks and Dependabot PRs don't have permission to write comments, so skip the check in + # those cases. if: >- github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository &&