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: pull_request:
workflow_dispatch: [] workflow_dispatch: []
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs: jobs:
build-test: build-test:
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]

View File

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

View File

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