We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4814a22 commit a48fa27Copy full SHA for a48fa27
1 file changed
.github/workflows/preview.yml
@@ -17,11 +17,14 @@ jobs:
17
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18
run: |
19
REPO="${GITHUB_REPOSITORY}"
20
- PR_NUM="${{ github.event.pull_request.number }}"
21
BRANCH="${{ github.event.pull_request.head.ref }}"
22
23
PREVIEW_URL="https://htmlpreview.github.io/?https://raw.githubusercontent.com/${REPO}/refs/heads/${BRANCH}/index.html"
24
25
- COMMENT="🚀 Preview ready: ${PREVIEW_URL}"
+ echo "PREVIEW_URL=${PREVIEW_URL}" >> $GITHUB_ENV
26
27
- gh pr comment "$PR_NUM" --body "$COMMENT"
+ - uses: marocchino/sticky-pull-request-comment@v2
+ with:
28
+ message: |
29
+ 🚀 Preview ready:
30
+ ${{ env.PREVIEW_URL }}
0 commit comments