Skip to content

Commit

Permalink
[Enhance] Cancel previous runs that are not completed (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
wHao-Wu authored Dec 7, 2021
1 parent 921ab01 commit 696dcf3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
- 'docs/**'
- 'docs_zh-CN/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-18.04
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: deploy

on: push

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-n-publish:
runs-on: ubuntu-18.04
Expand Down

0 comments on commit 696dcf3

Please # to comment.