mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-23 17:23:59 +08:00
updated restore
This commit is contained in:
parent
0756d0f6e9
commit
2b724dd191
2 changed files with 2 additions and 4 deletions
|
@ -53,10 +53,9 @@ async function run(): Promise<void> {
|
|||
utils.setCacheHitOutput(isExactKeyMatch);
|
||||
|
||||
if (!isExactKeyMatch && core.getInput(Inputs.StrictRestore) == "true") {
|
||||
core.info(
|
||||
throw new Error(
|
||||
"Cache with exact key not found, hence exiting the workflow as strict-restore is set to true"
|
||||
);
|
||||
return;
|
||||
}
|
||||
core.info(`Cache restored from key: ${cacheKey}`);
|
||||
} catch (error: unknown) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue