Skip to content

Commit 410b1d6

Browse files
committed
comment with deployment URL
1 parent 4f441c0 commit 410b1d6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/hugo.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions:
1515
contents: read
1616
pages: write
1717
id-token: write
18+
pull-requests: write
1819

1920
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2021
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
@@ -133,3 +134,13 @@ jobs:
133134
source: "public/*"
134135
rm: true
135136
strip_components: 1
137+
138+
- name: Inform about Preview URL
139+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1
140+
with:
141+
header: pr-preview
142+
message: |
143+
Pull Request Live Preview
144+
:---:
145+
| <p></p> :rocket: View preview at <br />https://${{ env.preview_subdomain }}.${{ env.domain }}/${{ env.preview_segment }}/<br /><br />
146+
| <h6>Built to branch [`gh-pages`](https://github.com/mxmehl/hugo-preview-test/tree/gh-pages) at 2025-03-27 11:34 UTC. <br> Preview will be ready when the [GitHub Pages deployment](https://github.com/mxmehl/hugo-preview-test/deployments) is complete. <br><br> </h6>

0 commit comments

Comments
 (0)