Skip to content

Commit b85b2a5

Browse files
authored
Update action.yml
1 parent 32e1971 commit b85b2a5

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

action.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,21 @@ inputs:
1818
runs:
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
@@ -32,7 +42,7 @@ runs:
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

0 commit comments

Comments
 (0)