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,