mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-27 17:14:51 -05:00
a5be560235
Bumps the github-actions group with 2 updates: [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action) and [actions/github-script](https://github.com/actions/github-script). Updates `gradle/gradle-build-action` from 2.8.1 to 2.9.0 - [Release notes](https://github.com/gradle/gradle-build-action/releases) - [Commits](https://github.com/gradle/gradle-build-action/compare/v2.8.1...v2.9.0) Updates `actions/github-script` from 6 to 7 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v6...v7) --- updated-dependencies: - dependency-name: gradle/gradle-build-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
27 lines
850 B
YAML
27 lines
850 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: ./
|
|
- name: Run build with Gradle wrapper
|
|
id: gradle
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
|
run: ./gradlew build --scan
|
|
- name: "Add Build Scan URL as PR comment"
|
|
uses: actions/github-script@v7
|
|
with:
|
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
script: |
|
|
github.rest.issues.createComment({
|
|
issue_number: context.issue.number,
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
body: 'PR ready for review: ${{ steps.gradle.outputs.build-scan-url }}'
|
|
})
|