mirror of https://github.com/apache/druid.git
Do not cancel old GHA workflows triggered on branch commits (#14279)
* group and limit workflows only on PRs and not on branch commits * also apply to Static Checks CI
This commit is contained in:
parent
96a3c00754
commit
bbbb031057
|
@ -27,7 +27,7 @@ on:
|
|||
- '[0-9]+.[0-9]+.[0-9]+-[A-Za-z0-9]+' # release branches
|
||||
|
||||
concurrency:
|
||||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
||||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}' # group workflows only on pull_requests and not on branch commits
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
|
|
|
@ -39,7 +39,7 @@ on:
|
|||
- '[0-9]+.[0-9]+.[0-9]+-[A-Za-z0-9]+' # release branches
|
||||
|
||||
concurrency:
|
||||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
||||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}' # group workflows only on pull_requests and not on branch commits
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
|
|
Loading…
Reference in New Issue