@erdoai/cli 0.277.0 → 0.278.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11249,7 +11249,7 @@ integrationActionsCmd.command("run <app> <key>").description("Run an action thro
|
|
|
11249
11249
|
if (input === null || typeof input !== "object" || Array.isArray(input)) throw new Error("action input must be a JSON object");
|
|
11250
11250
|
const result = await new ErdoClient().runIntegrationAction(app, key, input);
|
|
11251
11251
|
console.log(JSON.stringify(result, null, 2));
|
|
11252
|
-
if (
|
|
11252
|
+
if (!["succeeded", "pending_approval", "in_progress"].includes(result.status)) process.exitCode = 1;
|
|
11253
11253
|
} catch (e) {
|
|
11254
11254
|
fail(e);
|
|
11255
11255
|
}
|