Skip to content

Commit

Permalink
Don't cancel builds on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Feb 29, 2024
1 parent 94ad209 commit a562ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:

concurrency:
# Cancel previous actions from the same PR: https://stackoverflow.com/a/72408109
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
group: concurrency-group::${{ github.workflow }}::${{ github.event.pull_request.number > 0 && format('pr-{0}', github.event.pull_request.number) || github.ref_name }}
cancel-in-progress: ${{ github.ref_name != 'main' }}

jobs:
test:
Expand Down

0 comments on commit a562ffb

Please sign in to comment.