File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ defaults:
3131 run :
3232 shell : bash
3333concurrency :
34- group : " ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}"
34+ group : " ${{ (( github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}"
3535 cancel-in-progress : true
3636jobs :
3737 pr :
Original file line number Diff line number Diff line change @@ -299,9 +299,10 @@ defaults:
299299 shell : bash
300300
301301concurrency :
302- # For a given workflow, if we push to the same PR, cancel all previous builds on that PR.
303- # If the push is not attached to a PR, we will cancel all builds related to the same commit SHA.
304- group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
302+ # For a given workflow, if we push to the same branch, cancel all previous builds on that branch.
303+ # We add an exception for try builds (try branch) and unrolled rollup builds (try-perf), which
304+ # are all triggered on the same branch, but which should be able to run concurrently.
305+ group : ${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}
305306 cancel-in-progress : true
306307
307308jobs :
You can’t perform that action at this time.
0 commit comments