diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index e4138a9..9c907f2 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -64,14 +64,30 @@ jobs: - name: Create comment content run: | - echo ":herb: **Preview your docs:** <${{ steps.generate-docs.outputs.preview_url }}>" > comment.md - + PREVIEW_URL="${{ steps.generate-docs.outputs.preview_url }}" + cat > comment.md << EOF +
+ + --- + EOF + if [ -n "${{ steps.page-links.outputs.page_links }}" ]; then echo "" >> comment.md - echo "Here are the markdown pages you've updated:" >> comment.md + echo "