Commit 60984e7
authored
ci: add concurrency group to functions.yaml to cancel redundant runs (#3536)
* ci: add concurrency group to functions.yaml to cancel redundant runs
Without a concurrency configuration, pushing multiple commits to the
same PR triggers multiple simultaneous workflow runs. Add a concurrency
group keyed on workflow name and ref so that only the latest run for a
given branch or PR is active, cancelling any in-progress predecessor.
Fixes #3531
* ci: only cancel in-progress runs for PRs, not main pushes
Pushes to main trigger build and publish jobs. Cancelling an in-progress
main run when another push arrives could interrupt image publishing.
Make cancel-in-progress conditional on pull_request events only.1 parent 56465d4 commit 60984e7
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
0 commit comments