Unverified Commit cb6a0acc authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Use precise matching for artifact bundles

This should fix the warnings issued when saving artifact bundles.
parent aa2ed2e0
Loading
Loading
Loading
Loading
+1 −1
Changes for action.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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:
+4 −1
Changes for src/cache-gradle-user-home.ts: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -101,7 +101,10 @@ export class GradleUserHomeCache extends AbstractCache {
    ): Promise<void> {
        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