Unverified Commit aa9bf777 authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Add build-scan comment to any PRs

parent ed2ff1a4
Loading
Loading
Loading
Loading
+26
Changes for .github/workflows/pr-build-scan-comment.yml: 26 added lines, 0 removed lines.
Original line number Diff line number Diff line
name: Add a build scan comment to PR
on: pull_request
jobs:
  gradle:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-java@v1
      with:
        java-version: 11
    - uses: gradle/gradle-build-action@v2
      id: gradle
      with:
        build-root-directory: __tests__/samples/kotlin-dsl
        arguments: help
    - name: "Comment build scan url"
      uses: actions/github-script@v3
      with:
        github-token: ${{secrets.GITHUB_TOKEN}}
        script: |
          github.issues.createComment({
            issue_number: context.issue.number,
            owner: context.repo.owner,
            repo: context.repo.repo,
            body: 'Dummy comment for PR: ${{ steps.gradle.outputs.build-scan-url }}'
          })