Add concurrency rules to cancel workflows in progress

This commit is contained in:
Steve Repsher 2023-02-06 21:12:26 +00:00
parent de03c9610b
commit 7c1b2e01fe
No known key found for this signature in database
GPG Key ID: 776C4F2DACF6131B
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,10 @@ env:
NODE_OPTIONS: --max_old_space_size=6144 NODE_OPTIONS: --max_old_space_size=6144
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
lint: lint:
name: Lint and check format name: Lint and check format

View File

@ -12,6 +12,10 @@ env:
permissions: permissions:
contents: write contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
dedupe: dedupe:
name: Deduplicate dependencies name: Deduplicate dependencies