chore: fix GHA concurrency check to not apply to main branch (#771)
This commit is contained in:
parent
aa6a58f73c
commit
d3f98c32ee
|
@ -12,9 +12,10 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
# Cancel previous actions from the same PR: https://stackoverflow.com/a/72408109
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
# Cancel previous actions from the same PR or branch except 'main' branch.
|
||||
# See https://docs.github.com/en/actions/using-jobs/using-concurrency and https://docs.github.com/en/actions/learn-github-actions/contexts for more info.
|
||||
group: concurrency-group::${{ github.workflow }}::${{ github.event.pull_request.number > 0 && format('pr-{0}', github.event.pull_request.number) || github.ref_name }}${{ github.ref_name == 'main' && format('::{0}', github.run_id) || ''}}
|
||||
cancel-in-progress: ${{ github.ref_name != 'main' }}
|
||||
|
||||
jobs:
|
||||
# matrix-prep-* steps dynamically generate a bit of JSON depending on whether our action has
|
||||
|
|
Loading…
Reference in New Issue