Skip to content

Commit fd22547

Browse files
authored
Merge pull request #14566 from dotty-staging/scaladoc/repair-upload-script
CI: Escape invalid characters from doc destination.
2 parents 8922c88 + 7781289 commit fd22547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scaladoc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
PR_NUMBER: ${{ github.event.pull_request.number }}
6969
with:
7070
inlineScript: |
71-
DOC_DEST=pr-${PR_NUMBER:-${GITHUB_REF##*/}}
71+
DOC_DEST=$(echo pr-${PR_NUMBER:-${GITHUB_REF##*/}} | tr -d -c "[-A-Za-z0-9]")
7272
echo uplading docs to https://scala3doc.virtuslab.com/$DOC_DEST
7373
az storage container create --name $DOC_DEST --account-name scala3docstorage --public-access container
7474
az storage blob upload-batch -s scaladoc/output -d $DOC_DEST --account-name scala3docstorage

0 commit comments

Comments
 (0)