Setup workflow job concurrency.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2022-11-18 07:24:12 +00:00 committed by Megan Wilhite
parent bc448c0d7b
commit eeb5fa197c

View file

@ -7,6 +7,14 @@ on:
permissions:
contents: read
concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
get-changed-files:
name: Get Changed Files