We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e005506 commit 43051c3Copy full SHA for 43051c3
.github/workflows/build-prev.yml
@@ -78,9 +78,9 @@ jobs:
78
# list each changed file as a page link
79
while IFS= read -r f; do
80
[ -z "$f" ] && continue
81
- NAME=$(basename "${f%.*}")
82
- # assume Cloudflare preview serves pages at .html
83
- URL="${PREVIEW_URL}/${f%.*}.html"
+ REL_PATH="${f#docs/}"
+ NAME=$(basename "${REL_PATH%.*}")
+ URL="${PREVIEW_URL}/${REL_PATH%.*}.html"
84
BODY="${BODY}
85
- [${NAME}](${URL})"
86
done <<< "${{ steps.changes.outputs.files }}"
0 commit comments