Skip to content

Commit bd5f614

Browse files
committed
Add concurrency control to workflow
Added concurrency configuration to ensure only one workflow runs at a time: - Group by workflow name and git ref (branch/tag) - Cancel in-progress runs when new push occurs - Each branch/tag gets its own concurrency group Behavior: - If a build is running for main branch and you push again, the old build is cancelled - If a build is running for main and you push a tag, tag build runs separately (different ref) - Prevents wasted build time and resources - Ensures latest code is always built first
1 parent 418f979 commit bd5f614

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ on:
2929
permissions:
3030
contents: write
3131

32+
concurrency:
33+
group: ${{ github.workflow }}-${{ github.ref }}
34+
cancel-in-progress: true
35+
3236
jobs:
3337
build:
3438
runs-on: windows-latest

0 commit comments

Comments
 (0)