Skip to content

Commit 6e34607

Browse files
authored
CI: fixing pypi syntax (#15943)
1 parent 0ba28c8 commit 6e34607

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/release-pypi.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ defaults:
1111
run:
1212
shell: bash
1313

14-
env:
15-
PUBLISH: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
16-
1714
jobs:
1815
init:
1916
runs-on: ubuntu-20.04
@@ -215,8 +212,8 @@ jobs:
215212
needs: [build-packages]
216213
uses: ./.github/workflows/legacy-checkpoints.yml
217214
with:
218-
push_to_s3: ${{ env.PUBLISH }}
219-
create_pr: ${{ env.PUBLISH }}
215+
push_to_s3: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
216+
create_pr: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
220217
secrets:
221218
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
222219
AWS_SECRET_KEY_ID: ${{ secrets.AWS_SECRET_KEY_ID }}

0 commit comments

Comments
 (0)