From 4d045615a9f5018904bc7e6492501b402521d3c6 Mon Sep 17 00:00:00 2001 From: Maximo Guk <62088388+Maximo-Guk@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:41:27 -0600 Subject: [PATCH] Use random UUID when creating wrangler artifacts output directory --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 92c6d98..fbe86f4 100755 --- a/src/index.ts +++ b/src/index.ts @@ -36,7 +36,10 @@ const config = { COMMANDS: getMultilineInput("command"), QUIET_MODE: getBooleanInput("quiet"), PACKAGE_MANAGER: getInput("packageManager"), - WRANGLER_OUTPUT_DIR: `${join(tmpdir(), "wranglerArtifacts")}`, + WRANGLER_OUTPUT_DIR: `${join( + tmpdir(), + `wranglerArtifacts-${crypto.randomUUID()}`, + )}`, } as const; const packageManager = getPackageManager(config.PACKAGE_MANAGER, {