From a7c463b44a8a041e0841b3a688ac3b984b451ac1 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Sun, 16 Jan 2022 23:45:15 +0100 Subject: [PATCH] Update to latest version of actions/github-script See https://github.com/marketplace/actions/github-script#breaking-changes-in-v5 * Update docs to latest github-script action version * Update CI build to latest GitHub API --- .github/workflows/pr-build-scan-comment.yml | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-build-scan-comment.yml b/.github/workflows/pr-build-scan-comment.yml index afd8ef3..f40bddc 100644 --- a/.github/workflows/pr-build-scan-comment.yml +++ b/.github/workflows/pr-build-scan-comment.yml @@ -15,11 +15,11 @@ jobs: working-directory: __tests__/samples/kotlin-dsl run: ./gradlew help - name: "Comment build scan url" - uses: actions/github-script@v3 + uses: actions/github-script@v5 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, diff --git a/README.md b/README.md index 74a8e7e..8b7c16b 100644 --- a/README.md +++ b/README.md @@ -309,12 +309,12 @@ jobs: - id: gradle run: ./gradlew build - name: "Comment build scan url" - uses: actions/github-script@v3 + uses: actions/github-script@v5 if: github.event_name == 'pull_request' && failure() with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,