feature(ci): cancel previous runs if in-progress

This commit is contained in:
Alexander 2021-08-28 10:57:13 +09:00
parent 9ac962888c
commit e73044f1f0
3 changed files with 12 additions and 0 deletions

View file

@ -5,6 +5,10 @@ on:
pull_request:
workflow_dispatch: []
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
build-test:
runs-on: [ubuntu-latest]

View file

@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:

View file

@ -5,6 +5,10 @@ on:
pull_request:
workflow_dispatch: []
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
build: