Add concurrency settings to PR-based workflows

This commit is contained in:
James M. Greene
2022-08-05 15:54:53 -05:00
parent f19d25133d
commit 4f84ed2a14
2 changed files with 10 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ on:
permissions:
contents: read
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
check-dist:
runs-on: ubuntu-latest

View File

@@ -9,6 +9,11 @@ on:
permissions:
contents: read
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest