mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-23 22:15:49 +00:00
chore(root): GA comment (not sticky)
This commit is contained in:
parent
0eedfec667
commit
076e66a2d3
17
.github/workflows/publish-dashboard.yaml
vendored
17
.github/workflows/publish-dashboard.yaml
vendored
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user