diff --git a/action.yml b/action.yml index a965498..03c0186 100644 --- a/action.yml +++ b/action.yml @@ -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-*/*"] + ["instrumented-jars", "caches/jars-*/*/"] ] outputs: diff --git a/src/cache-gradle-user-home.ts b/src/cache-gradle-user-home.ts index 6cdc8b3..4136d76 100644 --- a/src/cache-gradle-user-home.ts +++ b/src/cache-gradle-user-home.ts @@ -101,7 +101,10 @@ export class GradleUserHomeCache extends AbstractCache { ): Promise { const bundleMetaFile = this.getBundleMetaFile(bundle) - const globber = await glob.create(artifactPath) + const globber = await glob.create(artifactPath, { + implicitDescendants: false, + followSymbolicLinks: false + }) const bundleFiles = await globber.glob() // Handle no matching files