From 300d65ee39e604f02057dc122a85c0bfd5054291 Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Mon, 10 Feb 2025 09:57:30 +0100 Subject: [PATCH] Fix cleanup invocation. --- src/cleanup.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/cleanup.ts b/src/cleanup.ts index eae585a..d87e2f7 100644 --- a/src/cleanup.ts +++ b/src/cleanup.ts @@ -62,9 +62,4 @@ export async function run(): Promise { await ignoreErrors(saveCache()) } -if (require.main === module) { - run() -} else { - // https://nodejs.org/api/modules.html#modules_accessing_the_main_module - core.info('the script is loaded as a module, so skipping the execution') -} +run()