Skip to content

Commit

Permalink
ci: add concurrency groups to commit-triggered workflows (#2220)
Browse files Browse the repository at this point in the history
* only allow one concurrent workflow run per branch
  • Loading branch information
wpbonelli authored Jun 10, 2024
1 parent 5dabe6d commit f26cbd4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- master
- develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/mf6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ on:
branches:
- master
- develop

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

test:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/rtd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
branches:
- master
- develop

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

rtd_build:
Expand Down

0 comments on commit f26cbd4

Please sign in to comment.