File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ defaults:
31
31
run :
32
32
shell : bash
33
33
concurrency :
34
- group : " ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
34
+ group : " ${{ (( github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}"
35
35
cancel-in-progress : true
36
36
jobs :
37
37
pr :
Original file line number Diff line number Diff line change @@ -299,9 +299,10 @@ defaults:
299
299
shell : bash
300
300
301
301
concurrency :
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.ref }}
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 }}
305
306
cancel-in-progress : true
306
307
307
308
jobs :
You can’t perform that action at this time.
0 commit comments