Skip to content

Commit

Permalink
Replace use of set-output command with env file
Browse files Browse the repository at this point in the history
Fixes #461
  • Loading branch information
bigdaz committed Oct 20, 2022
1 parent c267ad1 commit 8b2cbfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflow-samples/groovy-dsl/build.gradle
Expand Up @@ -12,7 +12,7 @@ dependencies {

tasks.named("test").configure {
// Echo an output value so we can detect configuration-cache usage
println "::set-output name=task_configured::yes"
new File(System.getEnv("GITHUB_OUTPUT")) << "task_configured=yes\n"

doLast {
if (System.properties.verifyCachedBuild) {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflow-samples/kotlin-dsl/build.gradle.kts
Expand Up @@ -19,7 +19,7 @@ tasks.test {

tasks.named("test").configure {
// Echo an output value so we can detect configuration-cache usage
println("::set-output name=task_configured::yes")
new File(System.getEnv("GITHUB_OUTPUT")) << "task_configured=yes\n"

doLast {
if (System.getProperties().containsKey("verifyCachedBuild")) {
Expand Down
Expand Up @@ -51,7 +51,7 @@ def captureUsingBuildScanPublished(buildScanExtension, rootProject, invocationId
buildResults.setBuildScanUri(buildScan.buildScanUri.toASCIIString())
buildResults.writeToResultsFile(true)

println("::set-output name=build-scan-url::${buildScan.buildScanUri}")
new File(System.getEnv("GITHUB_OUTPUT")) << "build-scan-url=${buildScan.buildScanUri}\n"
}

onError { error ->
Expand Down

0 comments on commit 8b2cbfa

Please sign in to comment.