Skip to content

Commit

Permalink
gh: comment PR rather than update
Browse files Browse the repository at this point in the history
  • Loading branch information
nohaapav committed Nov 6, 2024
1 parent 1e57c6c commit 62e7367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ jobs:
uses: actions/github-script@v7
with:
script: |
github.rest.pulls.update({
pull_number: context.issue.number,
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: context.payload.pull_request.body + '\n🧚 Live preview: ${{ steps.cpr.outputs.pull-request-url }}'
body: '🧚 Live preview: ${{ steps.cpr.outputs.pull-request-url }}'
})

0 comments on commit 62e7367

Please sign in to comment.