From 7703f400e2ab836dca22874b653673f273cfcb70 Mon Sep 17 00:00:00 2001 From: Rares Matei Date: Mon, 10 Feb 2025 17:50:19 +0000 Subject: [PATCH] ensure all promises are handled in cache step --- workflow-steps/cache/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/workflow-steps/cache/main.ts b/workflow-steps/cache/main.ts index 9096360..3390083 100644 --- a/workflow-steps/cache/main.ts +++ b/workflow-steps/cache/main.ts @@ -52,6 +52,11 @@ cacheClient console.log(`- ${baseBranch}-${hashedKey}`); } } + process.exit(0); + }) + .catch(err => { + console.error('Cache restoration failed:', err); + process.exit(1); }); function rememberCacheRestorationForPostStep() {