Skip to content

Commit

Permalink
Add the concurrency setup to CI workflow (#503)
Browse files Browse the repository at this point in the history
Cancel in-progress jobs or runs for the current workflow in case a new commit 
has been pushed there.
  • Loading branch information
unkcpz authored Aug 18, 2023
1 parent 415fe7e commit a6fcf06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ name: continuous-integration

on: [push, pull_request]

# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

pre-commit:
Expand Down

0 comments on commit a6fcf06

Please sign in to comment.