Add concurency setting to CI workflow

This change will prompt the CI workflow to cancel a currently running
job, if a new push is sent in a PR. This should prevent duplicate jobs
running for the same PR simultaneously.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2022-07-04 21:18:31 +03:00
parent 9ba0c27cb2
commit 59e7b31778
No known key found for this signature in database
GPG Key ID: 7D073DCC2C074CB5

View File

@ -32,6 +32,10 @@ on:
This is the ref we will use to pull the changes from the coreos_remote.
required: false
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
permissions: {}
jobs: