Cancel in-progress workflow runs on a subsequent pull-request pushes
This will cancel any outstanding workflow runs when a commit is pushed to the active pull request. This is done by configuring `concurrency` in which only a single job or workflow in a concurrency `group` is active at a single time. Signed-off-by: Colton Padden <colton.padden@fastmail.com>
This commit is contained in:
@@ -4,6 +4,11 @@ on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'microsite/**'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -8,6 +8,10 @@ on:
|
||||
- 'docs/**'
|
||||
- 'microsite/**'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
@@ -8,6 +8,10 @@ on:
|
||||
- 'docs/**'
|
||||
- 'microsite/**'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -10,6 +10,10 @@ on:
|
||||
- 'packages/e2e-test/**'
|
||||
- 'packages/create-app/**'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
Reference in New Issue
Block a user