mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:58:56 +08:00 
			
		
		
		
	Avoid using GNU-specific touch options
This makes cache-cleaner work correctly on MacOS.
This commit is contained in:
		@@ -48,7 +48,7 @@ export class CacheCleaner {
 | 
				
			|||||||
    private async ageAllFiles(fileName = '*'): Promise<void> {
 | 
					    private async ageAllFiles(fileName = '*'): Promise<void> {
 | 
				
			||||||
        await exec.exec(
 | 
					        await exec.exec(
 | 
				
			||||||
            'find',
 | 
					            'find',
 | 
				
			||||||
            [this.gradleUserHome, '-name', fileName, '-exec', 'touch', '-m', '-d', '1970-01-01', '{}', '+'],
 | 
					            [this.gradleUserHome, '-name', fileName, '-exec', 'touch', '-m', '-t', '197001010000', '{}', '+'],
 | 
				
			||||||
            {}
 | 
					            {}
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user