diff --git a/src/cache-gradle-user-home.ts b/src/cache-gradle-user-home.ts index 0854534..56c8abe 100644 --- a/src/cache-gradle-user-home.ts +++ b/src/cache-gradle-user-home.ts @@ -299,6 +299,9 @@ def registerCallbacks(buildScanExtension, rootProjectName) { def scanFile = new File("gradle-build-scan.txt") buildScanPublished { buildScan -> scanFile.text = buildScan.buildScanUri + + println('::notice title=build-scan-url::' + buildScan.buildScanUri) + println('::set-output name=build-scan-url::' + buildScan.buildScanUri) } } } diff --git a/src/main.ts b/src/main.ts index 9a57948..78efb7e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -23,20 +23,12 @@ export async function run(): Promise { args ) - if (result.buildScanUrl) { - core.setOutput('build-scan-url', result.buildScanUrl) - } - if (result.status !== 0) { if (result.buildScanUrl) { core.setFailed(`Gradle build failed: ${result.buildScanUrl}`) } else { core.setFailed(`Gradle build failed: process exited with status ${result.status}`) } - } else { - if (result.buildScanUrl) { - core.notice(`Gradle build succeeded: ${result.buildScanUrl}`) - } } } catch (error) { core.setFailed(String(error))