ci: cancel previous runs on PR update (#3748)

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
This commit is contained in:
James Upjohn 2022-05-21 21:33:21 +12:00 committed by GitHub
parent 28efd29dfa
commit 523e0c5ef4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 0 deletions

View file

@ -7,6 +7,10 @@ on:
- master
pull_request:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}

View file

@ -7,6 +7,10 @@ on:
- master
pull_request:
concurrency:
group: check-formatting-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-20.04

View file

@ -7,6 +7,10 @@ on:
- master
pull_request:
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest

View file

@ -7,6 +7,10 @@ on:
- master
pull_request:
concurrency:
group: build-archlinux-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest

View file

@ -7,6 +7,10 @@ on:
env:
TWITCH_PUBSUB_SERVER_IMAGE: ghcr.io/chatterino/twitch-pubsub-server-test:v1.0.3
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}