update(ci): only set concurrency group for PRs.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>

Co-authored-by: Mauro Ezequiel Moltrasio <mmoltras@redhat.com>
This commit is contained in:
Federico Di Pierro 2023-04-04 16:02:28 +02:00 committed by poiana
parent de23899e49
commit 597f07ccae

View File

@ -9,7 +9,7 @@ on:
# Checks if any concurrent jobs under the same pull request or branch are being executed
# NOTE: this will cancel every workflow that is being ran as group is just the github ref (without the workflow name)
concurrency:
group: ${{ github.ref }}
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: