From 076e66a2d3e401ba76b659c1d2ff2421aa39fb53 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sat, 9 Aug 2025 19:27:48 -0700 Subject: [PATCH] chore(root): GA comment (not sticky) --- .github/workflows/publish-dashboard.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-dashboard.yaml b/.github/workflows/publish-dashboard.yaml index 4d76b75e..f134d8bc 100644 --- a/.github/workflows/publish-dashboard.yaml +++ b/.github/workflows/publish-dashboard.yaml @@ -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)