Skip to content

Commit

Permalink
Cancel old builds when new ones are started.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Dec 12, 2023
1 parent 9cd0736 commit b09856f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: C/C++ CI

on: [push]

concurrency:
group: environment-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build-linux:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- "master"

concurrency:
group: environment-release-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build-linux:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b09856f

Please sign in to comment.