Skip to content

Commit 4ffe671

Browse files
committed
add concurrency for PRs
1 parent e836a2d commit 4ffe671

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ on:
1919
concurrency:
2020
# PRs share a group (PR number) → newer PR runs cancel older ones.
2121
# Push/dispatch runs use unique run_id → nothing gets cancelled.
22-
group: build-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
23-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
22+
# group: build-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
23+
# cancel-in-progress: ${{ github.event_name == 'pull_request' }}
24+
group: ci-${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref_name }}
25+
cancel-in-progress: true
2426

2527
env:
2628
UV_PYTHON: 3.12
@@ -256,7 +258,7 @@ jobs:
256258
runs-on: ubuntu-latest
257259
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
258260
permissions:
259-
contents: read
261+
contents: write
260262
pull-requests: write
261263
steps:
262264
- name: Merge Dependabot PR

0 commit comments

Comments
 (0)