Unverified Commit a7c463b4 authored by Benedikt Ritter's avatar Benedikt Ritter Committed by GitHub
Browse files

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
parent 42faf281
Loading
Loading
Loading
Loading
+2 −2
Changes for .github/workflows/pr-build-scan-comment.yml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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,
+2 −2
Changes for README.md: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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,