Skip to content

Commit c7834a0

Browse files
committed
fix(azure-preview-workflow): update resource url to remove + use same token pattern
1 parent e3cfca2 commit c7834a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish-site.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ jobs:
131131
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_STORAGE_SAS_TOKEN }}
132132
PR_HASH: ${{ steps.pr_hash.outputs.hash }}
133133
run: |
134+
CLEAN_SAS_TOKEN=$(echo "${AZURE_STORAGE_SAS_TOKEN}" | tr -d '\n\r\t ')
134135
echo "Cleaning up deployment: ${PR_HASH}/"
135-
azcopy remove "https://spectrumcss.z13.web.core.windows.net/\$web/${PR_HASH}/?${AZURE_STORAGE_SAS_TOKEN}" \
136+
azcopy remove "https://spectrumcss.blob.core.windows.net/\$web/${PR_HASH}/?${CLEAN_SAS_TOKEN}" \
136137
--recursive || echo "Cleanup completed (some files may not exist)"
137138
echo "Cleanup completed for PR deployment: ${PR_HASH}/"

0 commit comments

Comments
 (0)