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

Improve sample for build-scan comment on PR

parent ff8a6872
Loading
Loading
Loading
Loading
+8 −9
Changes for .github/workflows/pr-build-scan-comment.yml: 8 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -6,16 +6,15 @@ jobs:
  gradle:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-java@v2
      with:
        distribution: temurin
        java-version: 11
    - uses: ./
    - id: gradle
    - name: Checkout project sources
      uses: actions/checkout@v2
    - name: Setup Gradle
      uses: ./
    - name: Run build with Gradle wrapper
      id: gradle
      working-directory: .github/workflows/samples/kotlin-dsl
      run: ./gradlew help
    - name: "Comment build scan url"
      run: ./gradlew build --scan
    - name: "Add build scan URL as PR comment"
      uses: actions/github-script@v5
      with:
        github-token: ${{secrets.GITHUB_TOKEN}}
+8 −9
Changes for README.md: 8 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -330,15 +330,14 @@ jobs:
  gradle:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-java@v2
      with:
        distribution: temurin
        java-version: 11
    - uses: gradle/gradle-build-action@v2
    - id: gradle
      run: ./gradlew build
    - name: "Comment build scan url"
    - name: Checkout project sources
      uses: actions/checkout@v2
    - name: Setup Gradle
      uses: gradle/gradle-build-action@v2
    - name: Run build with Gradle wrapper
      id: gradle
      run: ./gradlew build --scan
    - name: "Add build scan URL as PR comment"
      uses: actions/github-script@v5
      if: github.event_name == 'pull_request' && failure()
      with: