From 009bd36b91267904f102c9292e08b4c9c17efd14 Mon Sep 17 00:00:00 2001 From: daz Date: Wed, 20 Dec 2023 10:07:03 -0700 Subject: [PATCH] Exclude cc-keystore from Gradle User Home --- src/cache-base.ts | 2 +- src/cache-utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache-base.ts b/src/cache-base.ts index 5b4cb57..f536a5e 100644 --- a/src/cache-base.ts +++ b/src/cache-base.ts @@ -144,7 +144,7 @@ export class GradleStateCache { */ private async deleteExcludedPaths(): Promise { const rawPaths: string[] = params.getCacheExcludes() - // rawPaths.push('caches/*/cc-keystore') + rawPaths.push('caches/*/cc-keystore') const resolvedPaths = rawPaths.map(x => path.resolve(this.gradleUserHome, x)) for (const p of resolvedPaths) { diff --git a/src/cache-utils.ts b/src/cache-utils.ts index 61cc663..87f3ddd 100644 --- a/src/cache-utils.ts +++ b/src/cache-utils.ts @@ -11,7 +11,7 @@ import * as params from './input-params' import {CacheEntryListener} from './cache-reporting' -const CACHE_PROTOCOL_VERSION = 'v8-' +const CACHE_PROTOCOL_VERSION = 'v9-' const CACHE_KEY_PREFIX_VAR = 'GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX' const CACHE_KEY_OS_VAR = 'GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT'