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