GeezerVison is showing github.com — Tweak workflow · github/codeql-action@7e6ce16
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/pr-checks.yml +11-1Lines changed: 11 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
29 | 29 | runs-on: ${{ matrix.os }} |
30 | 30 | timeout-minutes: 45 |
31 | 31 |
|
| 32 | + concurrency: |
| 33 | + cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} |
| 34 | + group: pr-checks-unit-tests-${{ github.ref }}-${{ github.event_name }} |
| 35 | + |
32 | 36 | steps: |
33 | 37 | - name: Prepare git (Windows) |
34 | 38 | if: runner.os == 'Windows' |
@@ -70,14 +74,18 @@ jobs: |
70 | 74 | # These checks do not need to be run as part of the same matrix that we use for the `unit-tests` |
71 | 75 | # job. |
72 | 76 | pr-checks: |
73 | | - name: PR checks |
| 77 | + name: PR Checks |
74 | 78 | if: github.triggering_actor != 'dependabot[bot]' |
75 | 79 | permissions: |
76 | 80 | contents: read |
77 | 81 | pull-requests: write |
78 | 82 | runs-on: ubuntu-slim |
79 | 83 | timeout-minutes: 10 |
80 | 84 |
|
| 85 | + concurrency: |
| 86 | + cancel-in-progress: ${{ github.event_name == 'pull_request' || false }} |
| 87 | + group: pr-checks-pr-checks-${{ github.ref }}-${{ github.event_name }} |
| 88 | + |
81 | 89 | steps: |
82 | 90 | - name: Checkout repository |
83 | 91 | uses: actions/checkout@v6 |
@@ -103,6 +111,8 @@ jobs: |
103 | 111 | run: npx tsx --test |
104 | 112 |
|
105 | 113 | - name: Check repo size |
| 114 | + # Forks and Dependabot PRs don't have permission to write comments, so skip the check in |
| 115 | + # those cases. |
106 | 116 | if: >- |
107 | 117 | github.event_name == 'pull_request' && |
108 | 118 | github.event.pull_request.head.repo.full_name == github.repository && |
|