mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-07 08:46:10 +02:00
Remove unclickable buildScan link from failure
Build scan links will be rendered in GHA Job Summary.
This commit is contained in:
parent
dc49976071
commit
d63db6a05e
2 changed files with 1 additions and 21 deletions
|
@ -264,16 +264,12 @@ if (isTopLevelBuild) {
|
|||
|
||||
def registerCallbacks(buildScanExtension, rootProjectName) {
|
||||
buildScanExtension.with {
|
||||
def scanFile = new File("gradle-build-scan.txt")
|
||||
def buildFailed = false
|
||||
|
||||
buildFinished { result ->
|
||||
buildFailed = (result.failure != null)
|
||||
}
|
||||
|
||||
buildScanPublished { buildScan ->
|
||||
scanFile.text = buildScan.buildScanUri
|
||||
|
||||
// Send commands directly to GitHub Actions via STDOUT.
|
||||
def gradleCommand = rootProjectName + " " + gradle.startParameter.taskNames.join(" ")
|
||||
if (buildFailed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue