mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-26 02:16:19 +08:00
Retain 'set-output' command when GITHUB_OUTPUT is not set
This should maintain compatibility with older GitHub Enterprise versions
This commit is contained in:
parent
0842a550d1
commit
3fbe033aaa
@ -54,6 +54,9 @@ def captureUsingBuildScanPublished(buildScanExtension, rootProject, invocationId
|
|||||||
def githubOutput = System.getenv("GITHUB_OUTPUT")
|
def githubOutput = System.getenv("GITHUB_OUTPUT")
|
||||||
if (githubOutput) {
|
if (githubOutput) {
|
||||||
new File(githubOutput) << "build-scan-url=${buildScan.buildScanUri}\n"
|
new File(githubOutput) << "build-scan-url=${buildScan.buildScanUri}\n"
|
||||||
|
} else {
|
||||||
|
// Retained for compatibility with older GitHub Enterprise versions
|
||||||
|
println("::set-output name=build-scan-url::${buildScan.buildScanUri}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user