Skip to content

Commit b4d6987

Browse files
committed
Rename to isExactCacheKeyMatch
1 parent 767948d commit b4d6987

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bundler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
209209
await exec.exec('bundle', ['install', '--jobs', '4'])
210210

211211
// @actions/cache only allows to save for non-existing keys
212-
if (!common.isExactKeyMatch(key, cachedKey)) {
212+
if (!common.isExactCacheKeyMatch(key, cachedKey)) {
213213
if (cachedKey) { // existing cache but Gemfile.lock differs, clean old gems
214214
await exec.exec('bundle', ['clean'])
215215
}

common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ export function setupPath(newPathEntries) {
397397
// Determines if two keys are an exact match for the purposes of cache matching
398398
// Specifically, this is a case-insensitive match that ignores accents
399399
// From actions/cache@v3 src/utils/actionUtils.ts (MIT)
400-
export function isExactKeyMatch(key, cacheKey) {
400+
export function isExactCacheKeyMatch(key, cacheKey) {
401401
return !!(
402402
cacheKey &&
403403
cacheKey.localeCompare(key, undefined, {

dist/index.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)