Skip to content

Commit

Permalink
cancel older builds when a redundant build is started
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Jun 2, 2023
1 parent e6f8836 commit f7ea5ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
pull_request:
branches: [ main ]

# cancel older, redundant runs of same workflow on same branch
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
build:
name: ${{ matrix.spec.name }}
Expand Down

0 comments on commit f7ea5ed

Please sign in to comment.