mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:58:56 +08:00 
			
		
		
		
	Remove use of deprecated 'set-output' command
- Use GITHUB_OUTPUT file in init script - Write to a marker file in configuratiion-cache tests Fixes #461
This commit is contained in:
		@@ -11,8 +11,8 @@ dependencies {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
tasks.named("test").configure {
 | 
			
		||||
    // Echo an output value so we can detect configuration-cache usage
 | 
			
		||||
    println "::set-output name=task_configured::yes"
 | 
			
		||||
    // Write marker file so we can detect if task was configured
 | 
			
		||||
    file("task-configured.txt").text = "true"
 | 
			
		||||
 | 
			
		||||
    doLast {
 | 
			
		||||
        if (System.properties.verifyCachedBuild) {
 | 
			
		||||
 
 | 
			
		||||
@@ -18,8 +18,8 @@ tasks.test {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
tasks.named("test").configure {
 | 
			
		||||
    // Echo an output value so we can detect configuration-cache usage
 | 
			
		||||
    println("::set-output name=task_configured::yes")
 | 
			
		||||
    // Write marker file so we can detect if task was configured
 | 
			
		||||
    file("task-configured.txt").writeText("true")
 | 
			
		||||
 | 
			
		||||
    doLast {
 | 
			
		||||
        if (System.getProperties().containsKey("verifyCachedBuild")) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user