Skip to content

Commit

Permalink
ci: cancel same in-progress workflow (#8446)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jun 25, 2022
1 parent a927718 commit db766ac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pr-docs-build.yml
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/staging-docs.yml
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- 'dev'

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
build:
name: Build
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-unit.yml
Expand Up @@ -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 }})
Expand Down

0 comments on commit db766ac

Please sign in to comment.