diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 5ec3528d..0609b560 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -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 }}' })