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:
Colton Padden
2022-01-25 15:49:12 -05:00
parent 3bbf6125c6
commit 7f77248247
4 changed files with 17 additions and 0 deletions
+5
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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 }}