Skip to content

Commit 5c73384

Browse files
committed
comment GitHub Pages url to PR
1 parent 54447e2 commit 5c73384

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/branch-preview.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
permissions:
6565
pages: write
6666
id-token: write
67+
pull-requests: write
6768
environment:
6869
name: github-pages
6970
url: ${{ steps.deployment.outputs.page_url }}
@@ -73,3 +74,8 @@ jobs:
7374
- name: Deploy to GitHub Pages
7475
id: deployment
7576
uses: actions/deploy-pages@v4
77+
- name: Comment URL to Pull Request
78+
uses: marocchino/sticky-pull-request-comment@v2
79+
with:
80+
message: |
81+
Deployed ${{ github.sha }} to ${{ steps.deployment.outputs.page_url }}/pr/${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)