mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-29 11:40:59 -05:00
Avoid using GNU-specific touch options
This makes cache-cleaner work correctly on MacOS.
This commit is contained in:
parent
c64fe31590
commit
fb549a8417
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue