cleanup(ci): properly set a concurrency for CI workflows.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro 2023-04-04 14:40:49 +02:00 committed by poiana
parent 2b29ff7ee6
commit de23899e49

View File

@ -6,6 +6,12 @@ on:
branches: [master]
workflow_dispatch:
# 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 }}
cancel-in-progress: true
jobs:
build-minimal:
runs-on: ubuntu-20.04