Skip to content

Commit 7e6ce16

Browse files
committed
Tweak workflow
1 parent 7db47dd commit 7e6ce16

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/pr-checks.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
runs-on: ${{ matrix.os }}
3030
timeout-minutes: 45
3131

32+
concurrency:
33+
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
34+
group: pr-checks-unit-tests-${{ github.ref }}-${{ github.event_name }}
35+
3236
steps:
3337
- name: Prepare git (Windows)
3438
if: runner.os == 'Windows'
@@ -70,14 +74,18 @@ jobs:
7074
# These checks do not need to be run as part of the same matrix that we use for the `unit-tests`
7175
# job.
7276
pr-checks:
73-
name: PR checks
77+
name: PR Checks
7478
if: github.triggering_actor != 'dependabot[bot]'
7579
permissions:
7680
contents: read
7781
pull-requests: write
7882
runs-on: ubuntu-slim
7983
timeout-minutes: 10
8084

85+
concurrency:
86+
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
87+
group: pr-checks-pr-checks-${{ github.ref }}-${{ github.event_name }}
88+
8189
steps:
8290
- name: Checkout repository
8391
uses: actions/checkout@v6
@@ -103,6 +111,8 @@ jobs:
103111
run: npx tsx --test
104112

105113
- name: Check repo size
114+
# Forks and Dependabot PRs don't have permission to write comments, so skip the check in
115+
# those cases.
106116
if: >-
107117
github.event_name == 'pull_request' &&
108118
github.event.pull_request.head.repo.full_name == github.repository &&

0 commit comments

Comments
 (0)