chore(root): GA comment (not sticky)

This commit is contained in:
Ben Allfree 2025-08-09 19:27:48 -07:00
parent 0eedfec667
commit 076e66a2d3

View File

@ -69,15 +69,16 @@ jobs:
- name: Comment preview URL on PR
if: github.event_name == 'pull_request_target'
uses: marocchino/sticky-pull-request-comment@v2
uses: actions/github-script@v7
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number }}
header: pockethost-dashboard-preview
message: |
✅ HEAD preview (updated at each push): ${{ steps.deployment.outputs.deployment-alias-url }}
✅ Permalink preview (updated at each push): ${{ steps.deployment.outputs.deployment-alias-url }}
Triggered by @${{ github.actor }} on `${{ github.event.pull_request.head.ref }}`.
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `✅ HEAD: ${{ steps.deployment.outputs.deployment-alias-url }}
✅ Permalink: ${{ steps.deployment.outputs.deployment-url }}`
})
- name: Discord feature branch notification
if: github.event_name == 'pull_request_target' || (github.event_name == 'push' && github.ref_name != env.MAIN_BRANCH)