Cancel workflow runs which get superseded automatically

This commit is contained in:
Tom Hughes 2022-04-21 12:25:59 +01:00
parent 32419b41f9
commit 56e7b269a0
3 changed files with 9 additions and 0 deletions

View file

@ -2,6 +2,9 @@ name: Docker
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}-{{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Docker

View file

@ -2,6 +2,9 @@ name: Lint
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}-{{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
os: ubuntu-20.04
ruby: 2.7

View file

@ -2,6 +2,9 @@ name: Tests
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}-{{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Ubuntu ${{ matrix.ubuntu }}, Ruby ${{ matrix.ruby }}