Commit bd5f614
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 first1 parent 418f979 commit bd5f614
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
0 commit comments