add restore-only

This commit is contained in:
github-actions[bot] 2025-08-07 23:01:02 -07:00
parent 8e57b58e57
commit 481f18bdd4
2 changed files with 5 additions and 1 deletions

View file

@ -18,7 +18,8 @@ process.on('uncaughtException', e => {
export async function run(earlyExit?: boolean) {
try {
const cacheInput = core.getBooleanInput('cache');
if (cacheInput) {
const restoreOnly = core.getBooleanInput('restoreOnly');
if (cacheInput && !restoreOnly) {
await cachePackages();
if (earlyExit) {