Loading action.yml +1 −1 Changes for action.yml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ inputs: ["generated-gradle-jars", "caches/*/generated-gradle-jars/*.jar"], ["wrapper-zips", "wrapper/dists/*/*/*.zip"], ["dependency-jars", "caches/modules-*/files-*/**/*.jar"], ["instrumented-jars", "caches/jars-*/*/*.jar"] ["instrumented-jars", "caches/jars-*/*"] ] outputs: Loading src/cache-utils.ts +6 −1 Changes for src/cache-utils.ts: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -62,12 +62,17 @@ export function hashFileNames(fileNames: string[]): string { } /** * Attempt to delete a file, waiting to allow locks to be released * Attempt to delete a file or directory, waiting to allow locks to be released */ export async function tryDelete(file: string): Promise<void> { const stat = fs.lstatSync(file) for (let count = 0; count < 3; count++) { try { if (stat.isDirectory()) { fs.rmdirSync(file, {recursive: true}) } else { fs.unlinkSync(file) } return } catch (error) { if (count === 2) { Loading Loading
action.yml +1 −1 Changes for action.yml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ inputs: ["generated-gradle-jars", "caches/*/generated-gradle-jars/*.jar"], ["wrapper-zips", "wrapper/dists/*/*/*.zip"], ["dependency-jars", "caches/modules-*/files-*/**/*.jar"], ["instrumented-jars", "caches/jars-*/*/*.jar"] ["instrumented-jars", "caches/jars-*/*"] ] outputs: Loading
src/cache-utils.ts +6 −1 Changes for src/cache-utils.ts: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -62,12 +62,17 @@ export function hashFileNames(fileNames: string[]): string { } /** * Attempt to delete a file, waiting to allow locks to be released * Attempt to delete a file or directory, waiting to allow locks to be released */ export async function tryDelete(file: string): Promise<void> { const stat = fs.lstatSync(file) for (let count = 0; count < 3; count++) { try { if (stat.isDirectory()) { fs.rmdirSync(file, {recursive: true}) } else { fs.unlinkSync(file) } return } catch (error) { if (count === 2) { Loading