mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 13:56:19 +08:00
Avoid using GNU-specific touch options
This makes cache-cleaner work correctly on MacOS.
This commit is contained in:
parent
c64fe31590
commit
fb549a8417
@ -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', '{}', '+'],
|
||||||
{}
|
{}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user