Skip to content

Commit 193155d

Browse files
committed
ci: fix workflow
1 parent 21004b7 commit 193155d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ on:
2424

2525
env:
2626
# are we on a release branch?
27-
DO_REALEASE: ${{ github.ref_name == github.event.repository.default_branch || github.ref_name == 'next' || startsWith(github.ref_name, 'maint/')}}
27+
DO_REALEASE: ${{ github.ref_name == github.event.repository.default_branch || github.ref_name == 'next' || startsWith(github.ref_name, 'maint/') }}
2828
DRY_RUN: true
2929

3030
permissions:
3131
contents: read
3232

3333
concurrency:
3434
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
35-
cancel-in-progress: ${{ env.DO_REALEASE != 'true' }}
35+
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.ref_name != github.event.repository.default_branch && github.ref_name != 'next' && !startsWith(github.ref_name, 'maint/')) }}
3636

3737
jobs:
3838
test:

0 commit comments

Comments
 (0)