diff --git a/package-lock.json b/package-lock.json index 07c13fc2..dcc0f213 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wrangler-action", - "version": "3.3.2", + "version": "3.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "wrangler-action", - "version": "3.3.2", + "version": "3.4.0", "license": "MIT OR Apache-2.0", "dependencies": { "@actions/core": "^1.10.1", diff --git a/src/index.ts b/src/index.ts index 836c8d7c..a285a508 100755 --- a/src/index.ts +++ b/src/index.ts @@ -5,6 +5,7 @@ import { endGroup as originalEndGroup, error as originalError, info as originalInfo, + debug, startGroup as originalStartGroup, setFailed, setOutput, @@ -204,7 +205,11 @@ async function uploadSecrets() { ), ), }); - } catch (err) { + } catch (err: unknown) { + if (err instanceof Error) { + error(err.message); + debug(`Secret upload error stack: ${err.stack}`); + } throw new Error(`Failed to upload secrets.`); } finally { endGroup();