Skip to content

Commit 2a7b300

Browse files
BytewaveMLPeregon
authored andcommitted
Rename to isExactCacheKeyMatch
1 parent 78876b7 commit 2a7b300

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bundler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
206206
await exec.exec('bundle', ['install', '--jobs', '4'])
207207

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

common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export async function setupJavaHome(rubyPrefix) {
416416
// Determines if two keys are an exact match for the purposes of cache matching
417417
// Specifically, this is a case-insensitive match that ignores accents
418418
// From actions/cache@v3 src/utils/actionUtils.ts (MIT)
419-
export function isExactKeyMatch(key, cacheKey) {
419+
export function isExactCacheKeyMatch(key, cacheKey) {
420420
return !!(
421421
cacheKey &&
422422
cacheKey.localeCompare(key, undefined, {

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)