Skip to content

Commit

Permalink
actions: cancel workflow if more changes are pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
okaestne committed Aug 24, 2024
1 parent 7e5e55b commit 5b8d568
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 @@ -8,6 +8,10 @@ on:
branches: [ "main" ]
workflow_dispatch:

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

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

0 comments on commit 5b8d568

Please sign in to comment.