File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,21 @@ inputs:
1818runs :
1919 using : " composite"
2020 steps :
21+ - name : Create Upload Workspace
22+ id : uploadworkspace
23+ shell : bash
24+ run : |
25+ GUID=$(uuidgen)
26+ UNIQUE_DIR="${RUNNER_TEMP}/${GUID}"
27+ mkdir -p "$UNIQUE_DIR"
28+ echo "Created: $UNIQUE_DIR"
29+ echo "upload_workspace=$UNIQUE_DIR" >> "$GITHUB_OUTPUT"
30+
2131 - name : Prepare upload without index.html
2232 shell : bash
2333 run : |
24- mkdir upload
25- rsync -av --exclude 'index.html' '${{ inputs.source }}' ./upload/
34+ mkdir ${{ steps.uploadworkspace.outputs.upload_workspace }}
35+ rsync -av --exclude 'index.html' '${{ inputs.source }}' "${{ steps.uploadworkspace.outputs.upload_workspace }}/"
2636
2737 - name : Upload all without index.html to Azure Blob (pre-stage)
2838 uses : azure/cli@v2
3242 --connection-string '${{ inputs.connectionstring }}' \
3343 --overwrite \
3444 --destination '${{ inputs.container }}' \
35- --source ./upload \
45+ --source ${{ steps.uploadworkspace.outputs.upload_workspace }}
3646
3747 - name : Upload the index.html to Azure Blob (activation)
3848 uses : azure/cli@v2
You can’t perform that action at this time.
0 commit comments