ci: correctly update comment in action (#6397)

This commit is contained in:
Emanuele Stoppa 2023-03-01 16:23:24 +00:00 committed by GitHub
parent ee8b2a0672
commit 2678264f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -62,12 +62,12 @@ jobs:
--header 'content-type: application/json' \ --header 'content-type: application/json' \
-d '["semver minor"]' -d '["semver minor"]'
- name: Send PR review - name: Send PR review
if: steps.find-blockers.outputs.found == 'true' if: steps.find-blockers.outputs.found == 'true'
run: | # approve the pull request uses: peter-evans/create-or-update-comment@v2
curl --request POST \ continue-on-error: true
--url https://api.github.com/repos/${{github.repository}}/pulls/${{github.event.number}}/reviews \ with:
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ issue-number: ${{ github.event.issue.number }}
--header 'content-type: application/json' \ body: |
-d '{"event":"REQUEST_CHANGES","body":"This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved."}' This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved.
edit-mode: replace