Prefix cache key with protocol version
Some checks are pending
Verify generated outputs / check (push) Waiting to run
Test different action inputs / action-inputs (push) Waiting to run
Test caching / seed-build (macos-latest) (push) Waiting to run
Test caching / seed-build (ubuntu-latest) (push) Waiting to run
Test caching / seed-build (windows-latest) (push) Waiting to run
Test caching / dependencies-cache (macos-latest) (push) Blocked by required conditions
Test caching / dependencies-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching / dependencies-cache (windows-latest) (push) Blocked by required conditions
Test caching / build-cache (macos-latest) (push) Blocked by required conditions
Test caching / build-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching / build-cache (windows-latest) (push) Blocked by required conditions
Test caching / configuration-cache (macos-latest) (push) Blocked by required conditions
Test caching / configuration-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching / configuration-cache (windows-latest) (push) Blocked by required conditions
Test caching / no-bundles-restored (push) Blocked by required conditions
Test Gradle execution / gradle-execution (macos-latest) (push) Waiting to run
Test Gradle execution / gradle-execution (ubuntu-latest) (push) Waiting to run
Test Gradle execution / gradle-execution (windows-latest, .bat) (push) Waiting to run
Test Gradle execution / gradle-versions (macos-latest) (push) Waiting to run
Test Gradle execution / gradle-versions (ubuntu-latest) (push) Waiting to run
Test Gradle execution / gradle-versions (windows-latest, .bat) (push) Waiting to run
Test caching with a custom GRADLE_USER_HOME / seed-build (push) Waiting to run
Test caching with a custom GRADLE_USER_HOME / dependencies-cache (push) Blocked by required conditions
Test caching with a custom GRADLE_USER_HOME / build-cache (push) Blocked by required conditions
Test caching with Kotlin DSL / seed-build (push) Waiting to run
Test caching with Kotlin DSL / verify-build (push) Blocked by required conditions

This will ensure that incompatiblee cache entries generated by previous action releases
will not be used.
This commit is contained in:
Daz DeBoer 2021-10-16 08:33:42 -06:00
parent 0eb5996567
commit 263f84178a
No known key found for this signature in database
GPG Key ID: DD6B9F0B06683D5D
5 changed files with 6 additions and 6 deletions

2
dist/main/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/post/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -18,8 +18,8 @@ export function isCacheDebuggingEnabled(): boolean {
}
function generateCacheKey(cacheName: string): CacheKey {
// Prefix can be used to force change all cache keys
const cacheKeyPrefix = process.env['CACHE_KEY_PREFIX'] || ''
// Prefix can be used to force change all cache keys (defaults to cache protocol version)
const cacheKeyPrefix = process.env['CACHE_KEY_PREFIX'] || 'v2-'
// At the most general level, share caches for all executions on the same OS
const runnerOs = process.env['RUNNER_OS'] || ''