File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,11 @@ jobs:
112112 HF_NAMESPACE : ${{ env.HF_USERNAME }}
113113 run : |
114114 chmod +x scripts/deploy_to_hf.sh
115- ./scripts/deploy_to_hf.sh "${{ matrix.environment }}" "${{ github.event.inputs.base_image_sha || '' }}"
115+ if [ -n "${{ github.event.inputs.base_image_sha }}" ]; then
116+ ./scripts/deploy_to_hf.sh --env "${{ matrix.environment }}" --base-sha "${{ github.event.inputs.base_image_sha }}"
117+ else
118+ ./scripts/deploy_to_hf.sh --env "${{ matrix.environment }}"
119+ fi
116120
117121 # Job to deploy single environment
118122 deploy-single :
@@ -140,4 +144,8 @@ jobs:
140144 HF_NAMESPACE : ${{ env.HF_USERNAME }}
141145 run : |
142146 chmod +x scripts/deploy_to_hf.sh
143- ./scripts/deploy_to_hf.sh "${{ matrix.environment }}" "${{ github.event.inputs.base_image_sha || '' }}"
147+ if [ -n "${{ github.event.inputs.base_image_sha }}" ]; then
148+ ./scripts/deploy_to_hf.sh --env "${{ matrix.environment }}" --base-sha "${{ github.event.inputs.base_image_sha }}"
149+ else
150+ ./scripts/deploy_to_hf.sh --env "${{ matrix.environment }}"
151+ fi
You can’t perform that action at this time.
0 commit comments