Skip to content

Commit d37167a

Browse files
r7kamuraeregon
authored andcommitted
Consider BUNDLE_ONLY in cache key
1 parent 52b8784 commit d37167a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bundler.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ async function computeBaseKey(platform, engine, version, lockFile, cacheVersion)
236236
const cwd = process.cwd()
237237
const bundleWith = process.env['BUNDLE_WITH'] || ''
238238
const bundleWithout = process.env['BUNDLE_WITHOUT'] || ''
239-
let key = `setup-ruby-bundler-cache-v6-${common.getOSNameVersionArch()}-${engine}-${version}-wd-${cwd}-with-${bundleWith}-without-${bundleWithout}`
239+
const bundleOnly = process.env['BUNDLE_ONLY'] || ''
240+
let key = `setup-ruby-bundler-cache-v6-${common.getOSNameVersionArch()}-${engine}-${version}-wd-${cwd}-with-${bundleWith}-without-${bundleWithout}-only-${bundleOnly}`
240241

241242
if (cacheVersion !== DEFAULT_CACHE_VERSION) {
242243
key += `-v-${cacheVersion}`

dist/index.js

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

0 commit comments

Comments
 (0)