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 +
+ Fern +

✅ Preview Ready

+ Visit Preview → +
+ + --- + 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 "
" >> comment.md + echo "📄 Changed pages" >> comment.md + echo "" >> comment.md echo "${{ steps.page-links.outputs.page_links }}" >> comment.md + echo "" >> comment.md + echo "
" >> comment.md + echo "" >> comment.md fi + echo '🌿 Deployed with Fern' >> comment.md + - name: Post PR comment uses: thollander/actions-comment-pull-request@v2.4.3 with: