Add concurrency rules to workflows (#420)

This commit is contained in:
Jesse Hills 2023-04-17 08:45:43 +12:00 committed by GitHub
parent 55661d41eb
commit caa7896d9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,11 @@ on:
permissions:
contents: read
concurrency:
# yamllint disable-line rule:line-length
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ci:
name: ${{ matrix.name }}

View File

@ -13,6 +13,11 @@ permissions:
contents: read
packages: write
concurrency:
# yamllint disable-line rule:line-length
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-image:
runs-on: ubuntu-latest