Skip to content

Commit cf3fefd

Browse files
committed
chore: use job-level concurrency with cancel-in-progress
1 parent 383fb86 commit cf3fefd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/changesets-release-pr.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,15 @@ permissions:
3131
# Needed to open/update the Release PR
3232
pull-requests: write
3333

34-
concurrency:
35-
# Avoid overlapping runs for the same ref (e.g., repeated pushes)
36-
group: changesets-${{ github.ref }}
37-
cancel-in-progress: false
38-
3934
jobs:
4035
# PR PATH: Preview only
4136
preview:
4237
if: github.event_name == 'pull_request'
4338
name: 🔎 Changesets Preview (PR)
4439
runs-on: ubuntu-24.04
40+
concurrency:
41+
group: changesets-preview-${{ github.event.pull_request.number }}
42+
cancel-in-progress: true
4543
steps:
4644
# Check out the PR HEAD commit (not the merge ref) to report the correct plan
4745
- name: ⏬ Checkout PR head (not merge ref)
@@ -109,6 +107,9 @@ jobs:
109107
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main')
110108
name: 🧩 Create/Update Release PR (and cut tags/releases)
111109
runs-on: ubuntu-24.04
110+
concurrency:
111+
group: changesets-main-${{ github.ref }}
112+
cancel-in-progress: true
112113

113114
steps:
114115
# Work on the main branch that was just pushed

0 commit comments

Comments
 (0)