From 29627fd0d5f152e2da59671987090ea0a5c29874 Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Sat, 20 Jul 2024 01:09:14 +0200 Subject: [PATCH] ci: update ci-failure-comment workflow (@fehmer) (#5632) --- .github/workflows/ci-failure-comment.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-failure-comment.yml b/.github/workflows/ci-failure-comment.yml index cf538c999..88f892e75 100644 --- a/.github/workflows/ci-failure-comment.yml +++ b/.github/workflows/ci-failure-comment.yml @@ -26,13 +26,8 @@ jobs: path: ./pr_num/pr_num.txt - name: Create comment - uses: actions/github-script@v6 + uses: peter-evans/create-or-update-comment@v4 with: - github-token: ${{ secrets.API_TOKEN }} - script: | - github.rest.issues.createComment({ - issue_number: ${{ steps.pr_num_reader.outputs.content }}, - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Continuous integration check(s) failed. Please review the failing check\'s logs and make the necessary changes. ' + context.payload.workflow_run.html_url - }) + issue-number: ${{ steps.pr_num_reader.outputs.content }} + body: | + Continuous integration check(s) failed. Please review the [failing check\'s logs](${{ github.event.workflow_run.html_url }}) and make the necessary changes.