Skip to content

Commit

Permalink
Cancel running workflows on new pushes. (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
pstibrany authored Oct 14, 2022
1 parent 757f620 commit 3cb4034
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
# - 'docs/**'
# - 'example/**'
# - 'tools/**'

concurrency:
# Cancel any running workflow for the same branch when new commits are pushed.
# We group both by ref_name (available when CI is triggered by a push to a branch/tag)
# and head_ref (available when CI is triggered by a PR).
group: "${{ github.ref_name }}-${{ github.head_ref }}"
cancel-in-progress: true

jobs:

lint:
Expand Down

0 comments on commit 3cb4034

Please sign in to comment.