From c1ad7e0b7672dc6a4ae1997b2dd86642875e633b Mon Sep 17 00:00:00 2001 From: "vimartin@redhat.com" Date: Mon, 26 Aug 2024 11:23:27 +0200 Subject: [PATCH] Update coveralls update job Since github-script v5, the correct syntax for adding a comment is github.rest.issues.createComment instead of github.issues.createComment Also updates the github-script to latest available version --- .github/workflows/updates.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/updates.yml b/.github/workflows/updates.yml index 4bcdcd42..7cad2c5a 100644 --- a/.github/workflows/updates.yml +++ b/.github/workflows/updates.yml @@ -19,12 +19,12 @@ jobs: runs-on: ubuntu-20.04 steps: - name: update PR with coveralls badge - uses: actions/github-script@v7 + uses: actions/github-script@v7.0.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | var BRANCH_NAME = process.env.BRANCH_NAME; - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,