Skip to content

Commit

Permalink
Cancel currently active jobs when push into same branch/pr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Aug 14, 2023
1 parent bc2479e commit afff04b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: ["main", "dev"]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit afff04b

Please sign in to comment.