-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abdc338
commit 4b2acdb
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ inputs: | |
description: 'The arguments to pass to the gradle command' | ||
required: false | ||
default: 'projects' | ||
github_token: | ||
description: 'GITHUB_TOKEN' | ||
default: '${{ github.token }}' | ||
|
||
runs: | ||
using: composite | ||
|
@@ -28,6 +31,20 @@ runs: | |
|
||
- name: ⚙️ Setup Gradle 🐘 | ||
uses: gradle/[email protected] | ||
id: gradle | ||
with: | ||
arguments: ${{ inputs.gradle-arguments }} | ||
dependency-graph: generate-and-submit | ||
|
||
- name: Add Build Scan URL as PR comment | ||
uses: actions/github-script@v5 | ||
if: github.event_name == 'pull_request' && failure() | ||
with: | ||
github-token: ${{ inputs.github_token }} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: '❌ ${{ github.workflow }} failed: ${{ steps.gradle.outputs.build-scan-url }}' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters