Loading action.yml +10 Changes for action.yml: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -30,6 +30,16 @@ inputs: description: Used to uniquely identify the current job invocation. Defaults to the matrix values for this job; this should not be overridden by users. required: false default: ${{ toJSON(matrix) }} cache-artifact-bundles: description: Names and patterns of artifact bundles to cache separately. For internal use only. required: false default: | [ ["generated-gradle-jars", "caches/*/generated-gradle-jars/*.jar"], ["wrapper-zips", "wrapper/dists/*/*/*.zip"], ["dependency-jars", "caches/modules-*/files-*/**/*.jar"], ["instrumented-jars", "caches/jars-*/*/*.jar"] ] outputs: build-scan-url: Loading src/cache-gradle-user-home.ts +6 −8 Changes for src/cache-gradle-user-home.ts: 6 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -10,13 +10,6 @@ import {AbstractCache, hashFileNames, tryDelete} from './cache-utils' // Which paths under Gradle User Home should be cached const CACHE_PATH = ['caches', 'notifications'] const CACHE_ARTIFACT_BUNDLES = [ ['generated-gradle-jars', 'caches/*/generated-gradle-jars/*.jar'], ['wrapper-zips', 'wrapper/dists/*/*/*.zip'], ['dependency-jars', 'caches/modules-*/files-*/**/*.jar'], ['instrumented-jars', 'caches/jars-*/*/*.jar'] ] export class GradleUserHomeCache extends AbstractCache { private gradleUserHome: string Loading Loading @@ -171,8 +164,13 @@ export class GradleUserHomeCache extends AbstractCache { } private getArtifactBundles(): Map<string, string> { const artifactBundleDefinition = core.getInput('cache-artifact-bundles') this.debug( `Using artifact bundle definition: ${artifactBundleDefinition}` ) const artifactBundles = JSON.parse(artifactBundleDefinition) return new Map( Array.from(CACHE_ARTIFACT_BUNDLES, ([key, value]) => [ Array.from(artifactBundles, ([key, value]) => [ key, path.resolve(this.gradleUserHome, value) ]) Loading Loading
action.yml +10 Changes for action.yml: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -30,6 +30,16 @@ inputs: description: Used to uniquely identify the current job invocation. Defaults to the matrix values for this job; this should not be overridden by users. required: false default: ${{ toJSON(matrix) }} cache-artifact-bundles: description: Names and patterns of artifact bundles to cache separately. For internal use only. required: false default: | [ ["generated-gradle-jars", "caches/*/generated-gradle-jars/*.jar"], ["wrapper-zips", "wrapper/dists/*/*/*.zip"], ["dependency-jars", "caches/modules-*/files-*/**/*.jar"], ["instrumented-jars", "caches/jars-*/*/*.jar"] ] outputs: build-scan-url: Loading
src/cache-gradle-user-home.ts +6 −8 Changes for src/cache-gradle-user-home.ts: 6 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -10,13 +10,6 @@ import {AbstractCache, hashFileNames, tryDelete} from './cache-utils' // Which paths under Gradle User Home should be cached const CACHE_PATH = ['caches', 'notifications'] const CACHE_ARTIFACT_BUNDLES = [ ['generated-gradle-jars', 'caches/*/generated-gradle-jars/*.jar'], ['wrapper-zips', 'wrapper/dists/*/*/*.zip'], ['dependency-jars', 'caches/modules-*/files-*/**/*.jar'], ['instrumented-jars', 'caches/jars-*/*/*.jar'] ] export class GradleUserHomeCache extends AbstractCache { private gradleUserHome: string Loading Loading @@ -171,8 +164,13 @@ export class GradleUserHomeCache extends AbstractCache { } private getArtifactBundles(): Map<string, string> { const artifactBundleDefinition = core.getInput('cache-artifact-bundles') this.debug( `Using artifact bundle definition: ${artifactBundleDefinition}` ) const artifactBundles = JSON.parse(artifactBundleDefinition) return new Map( Array.from(CACHE_ARTIFACT_BUNDLES, ([key, value]) => [ Array.from(artifactBundles, ([key, value]) => [ key, path.resolve(this.gradleUserHome, value) ]) Loading