Skip to content

Commit 2291f78

Browse files
author
elena.totmenina
committed
fix upload condition
1 parent 820259e commit 2291f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
216216
upload_linux:
217217
needs: test_linux
218-
if: ${{ github.ref }} == 'refs/heads/master' || ${{ github.ref }} == 'refs/heads/release*'
218+
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true)}}
219219
runs-on: ubuntu-latest
220220
strategy:
221221
matrix:
@@ -240,7 +240,7 @@ jobs:
240240
241241
upload_windows:
242242
needs: test_windows
243-
if: ${{ github.ref }} == 'refs/heads/master' || ${{ github.ref }} == 'refs/heads/release*'
243+
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true)}}
244244
runs-on: windows-latest
245245
strategy:
246246
matrix:

0 commit comments

Comments
 (0)