diff options
author | 2023-03-01 16:23:24 +0000 | |
---|---|---|
committer | 2023-03-01 16:23:24 +0000 | |
commit | 2678264f51ed81d2d9b58b21952e3bbaab6fe40b (patch) | |
tree | c6ea0dbc1a04f8b8d749f94b0293e089125f0d6f | |
parent | ee8b2a067201f94c6b06fbfc094288e068116c60 (diff) | |
download | astro-2678264f51ed81d2d9b58b21952e3bbaab6fe40b.tar.gz astro-2678264f51ed81d2d9b58b21952e3bbaab6fe40b.tar.zst astro-2678264f51ed81d2d9b58b21952e3bbaab6fe40b.zip |
ci: correctly update comment in action (#6397)
-rw-r--r-- | .github/workflows/check-merge.yml | 14 | ||||
-rw-r--r-- | benchmark/package.json | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/check-merge.yml b/.github/workflows/check-merge.yml index 9dc60dfd2..98f882a00 100644 --- a/.github/workflows/check-merge.yml +++ b/.github/workflows/check-merge.yml @@ -62,12 +62,12 @@ jobs: --header 'content-type: application/json' \ -d '["semver minor"]' - - name: Send PR review if: steps.find-blockers.outputs.found == 'true' - run: | # approve the pull request - curl --request POST \ - --url https://api.github.com/repos/${{github.repository}}/pulls/${{github.event.number}}/reviews \ - --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ - --header 'content-type: application/json' \ - -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."}' + uses: peter-evans/create-or-update-comment@v2 + continue-on-error: true + with: + issue-number: ${{ github.event.issue.number }} + body: | + This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved. + edit-mode: replace diff --git a/benchmark/package.json b/benchmark/package.json index 064cd601f..4233cbba9 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -15,4 +15,4 @@ "mri": "^1.2.0", "port-authority": "^2.0.1" } -}
\ No newline at end of file +} |