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
|
- 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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user