Skip to content

Commit

Permalink
Add concurrency group to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 authored and HU90m committed Mar 20, 2024
1 parent e771073 commit e3732ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ on:
pull_request:
branches: ["main"]

# Cancel existing runs if a pull request is pushed.
# For branch pushes, this will queue a new run and cancel the existing one. This allows the cache
# of the run to be used by the new run.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
checks:
name: Quality Check
Expand Down

0 comments on commit e3732ad

Please sign in to comment.