File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed
Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,13 @@ jobs:
111111 retention-days : ${{ env.KEEP_DAYS }}
112112 include-hidden-files : true
113113
114+ - name : access secrets
115+ # export to env bool if secrets.AWS_REGION is not empty
116+ run : echo "WITH_SECRETS=$([ -n '${{ secrets.AWS_REGION }}' ] && echo 0 || echo 1)" >> $GITHUB_ENV
117+
114118 - run : pip install -r requirements/ci.txt
115119 - name : Upload checkpoints to S3
116- if : ${{ secrets[AWS_REGION] != ' ' }}
120+ if : ${{ env.WITH_SECRETS == '1 ' }}
117121 working-directory : ${{ env.LEGACY_FOLDER }}
118122 env :
119123 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY }}
Original file line number Diff line number Diff line change @@ -179,12 +179,12 @@ jobs:
179179 with :
180180 pkg-folder : dist/${{ steps.folder.outputs.pkg }}
181181 pypi-token : ${{ secrets[format('PYPI_TOKEN_{0}', matrix.name)] }}
182- # FIXME: this is not working suddenly, Unrecognized named-value: 'secrets'
183- # legacy-checkpoints:
184- # needs: [build-packages]
185- # uses: ./.github/workflows/_legacy-checkpoints.yml
186- # with:
187- # push_to_s3: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
188- # upload_local: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
189- # create_pr: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
190- # secrets: inherit
182+
183+ legacy-checkpoints :
184+ needs : [build-packages]
185+ uses : ./.github/workflows/_legacy-checkpoints.yml
186+ with :
187+ push_to_s3 : ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
188+ upload_local : ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
189+ create_pr : ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
190+ secrets : inherit
File renamed without changes.
You can’t perform that action at this time.
0 commit comments