mirror of
https://github.com/gradle/gradle-build-action
synced 2024-12-17 22:02:17 +00:00
34a07dced0
Rather than requiring a separate step to add a PR comment, the `gradle-build-action` can now automatically add the Job Summary as a PR comment Fixes #1020
18 lines
463 B
YAML
18 lines
463 B
YAML
name: Demo adding Build Scan® comment to PR
|
|
on:
|
|
pull_request:
|
|
types: [assigned, review_requested]
|
|
jobs:
|
|
gradle:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout project sources
|
|
uses: actions/checkout@v4
|
|
- name: Setup Gradle
|
|
uses: ./
|
|
with:
|
|
add-pr-comment: true
|
|
- name: Run build with Gradle wrapper
|
|
id: gradle
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
|
run: ./gradlew build --scan
|