Skip to content

Commit

Permalink
Cancel in progress pipelines if non main brainch (#49)
Browse files Browse the repository at this point in the history
* Update releasedrafter.yml

* Update dotnet.yml
  • Loading branch information
ElanHasson authored Apr 22, 2024
1 parent 8a698a2 commit cace6b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/releasedrafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- reopened
- synchronize
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
update_release_draft:
Expand Down

0 comments on commit cace6b6

Please sign in to comment.