From cb6a0acca418a874c398318cbae53f9c1589fc4d Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Sat, 16 Oct 2021 09:46:17 -0600 Subject: [PATCH] Use precise matching for artifact bundles This should fix the warnings issued when saving artifact bundles. --- action.yml | 2 +- src/cache-gradle-user-home.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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