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:
111
111
retention-days : ${{ env.KEEP_DAYS }}
112
112
include-hidden-files : true
113
113
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
+
114
118
- run : pip install -r requirements/ci.txt
115
119
- name : Upload checkpoints to S3
116
- if : ${{ secrets[AWS_REGION] != ' ' }}
120
+ if : ${{ env.WITH_SECRETS == '1 ' }}
117
121
working-directory : ${{ env.LEGACY_FOLDER }}
118
122
env :
119
123
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY }}
Original file line number Diff line number Diff line change @@ -179,12 +179,12 @@ jobs:
179
179
with :
180
180
pkg-folder : dist/${{ steps.folder.outputs.pkg }}
181
181
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