Skip to content

Commit

Permalink
feat: add configuration that kills concurrent actions for the same PR…
Browse files Browse the repository at this point in the history
… when new commits are sent
  • Loading branch information
64J0 committed Mar 15, 2024
1 parent ab73e08 commit 66d2a72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ env:
NUGET_FEED: https://api.nuget.org/v3/index.json
NUGET_KEY: ${{ secrets.NUGET_KEY }}

# Kill other jobs when we trigger this workflow by sending new commits
# to the PR.
# https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 66d2a72

Please sign in to comment.