Skip to content

Commit

Permalink
Cancel in progress jobs when new changes pushed to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jan 26, 2022
1 parent 75efb73 commit ebd1d46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ on:
- master
- 'push-action/**'

jobs:
# Cancel running workflows when additional changes are pushed
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest

Expand Down

0 comments on commit ebd1d46

Please sign in to comment.