Skip to content

Commit

Permalink
cancel redundant CI workflows automatically (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha authored Jun 29, 2021
1 parent 417497a commit dce3abe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
- '.github/workflows/TagBot.yml'
workflow_dispatch:

# Cancel redundant CI tests automatically
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
Expand Down

0 comments on commit dce3abe

Please sign in to comment.