mirror of
https://github.com/actions/cache.git
synced 2026-06-06 17:14:21 +00:00
Don’t accidentally deleting cache from base branch
Signed-off-by: Gregorio Litenstein <g.litenstein@gmail.com>
This commit is contained in:
parent
bca7d427d7
commit
7a9fdeba07
2 changed files with 43 additions and 13 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue