Skip to content

Commit 6d18669

Browse files
committed
fix preview url
1 parent 93a7861 commit 6d18669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-prev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
# compute branch‑based preview URL
5959
BRANCH="${{ github.event.pull_request.head.ref }}"
60-
PREVIEW_URL="https://${BRANCH}.documentation-21k.pages.dev"
60+
PREVIEW_URL="https://${BRANCH//\//-}.documentation-21k.pages.dev"
6161
LOG_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
6262
if [ "${{ steps.build.outcome }}" = "success" ]; then
6363
STATUS="✅ Build succeeded"
@@ -68,7 +68,7 @@ jobs:
6868
# always link to last branch preview if available
6969
LINK="${LINK} | Previous preview: [${PREVIEW_URL}](${PREVIEW_URL})"
7070
fi
71-
BODY="### Docs Preview
71+
BODY="### Docs build
7272
- Status: ${STATUS}
7373
- ${LINK}
7474
**Changed pages:**"

0 commit comments

Comments
 (0)