File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 3030 default : ' '
3131 required : false
3232 type : string
33+ upload_local :
34+ description : ' When releasing, it installs local but need to upload with the actual version tag.'
35+ default : false
36+ required : false
37+ type : boolean
3338 create_pr :
3439 description : ' Create a PR to enable testing PL with a new checkpoint.'
3540 default : false
9297 - name : Generate checkpoints
9398 working-directory : ${{ env.legacy_dir }}
9499 run : bash generate_checkpoints.sh ${{ inputs.pl_version }}
100+ - name : Rename local to actual version
101+ if : inputs.upload_local
102+ working-directory : ${{ env.legacy_dir }}
103+ run : mv checkpoints/local checkpoints/${{ steps.decide-version.outputs.pl-version }}
95104
96- - name : Keep artifact & DryRun
105+ - name : " Determine: Keep artifact & DryRun"
97106 run : |
98107 python -c "print('KEEP_DAYS=' + str(30 if '${{ github.event_name }}'.startswith('pull_request') else 0))" >> $GITHUB_ENV
99108 python -c "print('AWS_RUN=' + str('' if '${{inputs.push_to_s3}}' == 'true' else '--dryrun'))" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 1- name : PyPI
1+ name : Releasing
22
33# https://help.github.com/en/actions/reference/events-that-trigger-workflows
44on :
@@ -188,5 +188,6 @@ jobs:
188188 uses : ./.github/workflows/_legacy-checkpoints.yml
189189 with :
190190 push_to_s3 : ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
191+ upload_local : ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
191192 create_pr : ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
192193 secrets : inherit
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function create_and_save_checkpoint {
2929# iterate over all arguments assuming that each argument is version
3030for pl_ver in " $@ "
3131do
32- printf " processing version: $pl_ver "
32+ printf " \n\n processing version: $pl_ver \n "
3333
3434 # Don't install/update anything before activating venv to avoid breaking any existing environment.
3535 python -m venv $ENV_PATH
4646
4747# use the PL installed in the environment if no PL version is specified
4848if [[ -z " $@ " ]]; then
49- printf " processing local version"
49+ printf " \n\n processing local version\n "
5050
5151 python -m pip install -r $LEGACY_PATH /requirements.txt
5252 pl_ver=" local"
You can’t perform that action at this time.
0 commit comments