Skip to content

Commit

Permalink
CI: Cancel previous runs for pull requests automatically (verilator#4512
Browse files Browse the repository at this point in the history
)
  • Loading branch information
donlon authored Sep 23, 2023
1 parent 429cb1f commit d64c023
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ defaults:
shell: bash
working-directory: repo

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true

jobs:

build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ defaults:
run:
working-directory: repo

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true

jobs:

windows:
Expand Down

0 comments on commit d64c023

Please sign in to comment.