Skip to content

Commit d354de1

Browse files
ntkmeeregon
authored andcommitted
Skip saving cache for merge_group event
1 parent ed55d55 commit d354de1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bundler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
218218
await exec.exec('bundle', ['install', '--jobs', `${jobs}`])
219219

220220
// @actions/cache only allows to save for non-existing keys
221-
if (!common.isExactCacheKeyMatch(key, cachedKey)) {
221+
// Also, skip saving cache for merge_group event
222+
if (!common.isExactCacheKeyMatch(key, cachedKey) && process.env['GITHUB_EVENT_NAME'] !== 'merge_group') {
222223
if (cachedKey) { // existing cache but Gemfile.lock differs, clean old gems
223224
await exec.exec('bundle', ['clean'])
224225
}

dist/index.js

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

0 commit comments

Comments
 (0)