ci: cancel same in-progress workflow (#8446)

This commit is contained in:
三咲智子
2022-06-25 22:18:54 +08:00
committed by GitHub
parent a9277187cf
commit db766ac310
3 changed files with 12 additions and 0 deletions

View File

@@ -2,6 +2,10 @@ name: PR Docs Build
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
build:
name: Build

View File

@@ -5,6 +5,10 @@ on:
branches:
- 'dev'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
build:
name: Build

View File

@@ -4,6 +4,10 @@ name: 🧪 Unit Test
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
build:
name: Unit Test (${{ matrix.node-name }})