From f208b5f897189d67b6a83c1643fab31decacb8fc Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 2 Mar 2023 16:10:56 +0000 Subject: [PATCH] ci: use one action for comments (#6406) * ci: use single action for comments * Update .github/workflows/benchmark.yml Co-authored-by: Bjorn Lu --------- Co-authored-by: Bjorn Lu --- .github/workflows/benchmark.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 13a2ad39f..6f0b2a570 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -91,11 +91,12 @@ jobs: pull-requests: write steps: - name: Comment PR - uses: thollander/actions-comment-pull-request@v1 + uses: peter-evans/create-or-update-comment@v2 + continue-on-error: true with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - pr_number: ${{ github.event.issue.number }} + issue-number: ${{ github.event.issue.number }} message: | ${{ needs.benchmark.outputs.PR-BENCH }} ${{ needs.benchmark.outputs.MAIN-BENCH }} + edit-mode: replace