This commit is contained in:
Antoine Toulme 2026-03-22 12:51:00 +08:00 committed by GitHub
commit 7d09b81994
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -19,7 +19,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) {