Skip to content

Commit decab09

Browse files
committed
add concurrency
1 parent b56748c commit decab09

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ on:
1111
release:
1212
types: [ published ]
1313

14+
concurrency:
15+
cancel-in-progress: false
16+
# This creates different concurrency groups depending on the trigger
17+
# For PRs: uses the PR number (e.g., "build-pr-123")
18+
# For branch pushes: uses the branch name (e.g., "build-develop/feature-x")
19+
# For releases: uses the release tag plus a unique run ID so each release runs independently
20+
# For manual dispatches: uses a unique run ID so each dispatch runs independently
21+
group: ${{ github.event_name == 'pull_request' && format('build-pr-{0}', github.event.pull_request.number) || github.event_name == 'push' && format('build-{0}', github.ref) || github.event_name == 'release' && format('build-release-{0}-{1}', github.event.release.tag_name, github.run_id) || format('build-dispatch-{0}', github.run_id) }}
22+
1423
defaults:
1524
run:
1625
shell: bash

0 commit comments

Comments
 (0)