Skip to content

Commit 6caa00a

Browse files
authored
chore(gha): update yamllint.yml GitHub workflow (#73)
1 parent 9693bcd commit 6caa00a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎.github/workflows/yamllint.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ on:
1313
pull_request:
1414
types: [opened, synchronize, reopened]
1515

16+
# Cancel a run as soon as a newer commit supersedes it. Scoped to
17+
# pull_request/synchronize, so a push on master/preprod/prod and a merge_group
18+
# run are never cancelled: those results must always be recorded. A cancelled
19+
# run always belongs to a SHA that is no longer the head of the pull request,
20+
# and branch protection only evaluates the required check on the current head.
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: ${{ github.event_name == 'pull_request' && github.event.action == 'synchronize' }}
24+
1625
jobs:
1726
validate-yaml:
1827
name: Validate YAML files

0 commit comments

Comments
 (0)