mirror of
https://github.com/actions/cache.git
synced 2025-06-18 23:02:57 -06:00
Don’t accidentally deleting cache from base branch
Signed-off-by: Gregorio Litenstein <g.litenstein@gmail.com>
This commit is contained in:
parent
d35302b225
commit
1328a18e7e
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