mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-29 11:40:59 -05:00
Add build-scan comment to any PRs
This commit is contained in:
parent
ed2ff1a448
commit
aa9bf7774e
1 changed files with 26 additions and 0 deletions
26
.github/workflows/pr-build-scan-comment.yml
vendored
Normal file
26
.github/workflows/pr-build-scan-comment.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
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 }}'
|
||||||
|
})
|
Loading…
Reference in a new issue