Don’t accidentally deleting cache from base branch

Signed-off-by: Gregorio Litenstein <g.litenstein@gmail.com>
This commit is contained in:
Gregorio Litenstein 2025-02-03 15:18:50 -03:00
parent d35302b225
commit 1328a18e7e
No known key found for this signature in database
GPG key ID: 4EB52A1A9CE2C63F
2 changed files with 43 additions and 13 deletions

View file

@ -69,6 +69,7 @@ export async function saveImpl(
);
}
if (utils.isExactKeyMatch(primaryKey, restoredKey)) {
/* istanbul ignore next */
const { GITHUB_TOKEN, GITHUB_REPOSITORY } = process.env || null;
if (GITHUB_TOKEN && GITHUB_REPOSITORY && refreshCache === true) {
core.info(