mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-22 01:53:24 +01:00
Limit error logging on secret upload
This commit is contained in:
parent
105f191b19
commit
f74c325efc
1 changed files with 6 additions and 3 deletions
|
@ -213,9 +213,10 @@ async function uploadSecrets() {
|
||||||
if (!secrets.length) {
|
if (!secrets.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
startGroup("🔑 Uploading Secrets");
|
|
||||||
|
|
||||||
|
startGroup("🔑 Uploading secrets...");
|
||||||
|
|
||||||
|
try {
|
||||||
if (semverCompare(config["WRANGLER_VERSION"], "3.4.0"))
|
if (semverCompare(config["WRANGLER_VERSION"], "3.4.0"))
|
||||||
return legacyUploadSecrets(secrets, environment, workingDirectory);
|
return legacyUploadSecrets(secrets, environment, workingDirectory);
|
||||||
|
|
||||||
|
@ -238,9 +239,11 @@ async function uploadSecrets() {
|
||||||
env: process.env,
|
env: process.env,
|
||||||
stdio: "ignore",
|
stdio: "ignore",
|
||||||
});
|
});
|
||||||
|
|
||||||
info(`✅ Uploaded secrets`);
|
info(`✅ Uploaded secrets`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new Error(`Error uploading secrets: ${err}`);
|
error(`❌ Upload failed`);
|
||||||
|
throw new Error(`Failed to upload secrets.`);
|
||||||
} finally {
|
} finally {
|
||||||
endGroup();
|
endGroup();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue