Skip to content

Commit

Permalink
Add comment to PR with preview link
Browse files Browse the repository at this point in the history
  • Loading branch information
jhutchison-nava committed Feb 3, 2025
1 parent f81590f commit 75fb0b7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,16 @@ jobs:
# aws cloudfront create-invalidation \
# --distribution-id ${{ secrets.DISTRIBUTION_ID }} \
# --paths "/*"

update-pr:
needs: deploy
runs-on: self-hosted

steps:
- name: Comment PR with execution number
uses: thollander/actions-comment-pull-request@v3
with:
message: |
## Deployment Success Message
URL: [dyx9tyg1h7v8p.cloudfront.net/${{github.event.number}}/](dyx9tyg1h7v8p.cloudfront.net/${{github.event.number}}/)
Latest commit: [${{ github.sha }}](https://github.com/${{github.repository}}/commit/${{github.sha}})
comment-tag: preview-link

0 comments on commit 75fb0b7

Please sign in to comment.