Skip to content

Commit

Permalink
Add workflow concurrency check (#1630)
Browse files Browse the repository at this point in the history
Add concurrency check, new workflows triggered on the same branch should
cancel old ones in progress.
#1619
  • Loading branch information
vmilosevic authored Dec 19, 2024
1 parent 8f326f4 commit 5a9da9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
pull_request:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pre-commit:
uses: ./.github/workflows/pre-commit.yml
Expand Down

0 comments on commit 5a9da9f

Please sign in to comment.