@cloud-cli/on 1.6.5 → 1.6.6
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/on.js +7 -12
- package/dist/server.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/on.js
CHANGED
|
@@ -8326,8 +8326,7 @@ var To = class e {
|
|
|
8326
8326
|
for (let n of this.workflows) {
|
|
8327
8327
|
if (n.on.provider !== e) continue;
|
|
8328
8328
|
if (n.on.if) try {
|
|
8329
|
-
|
|
8330
|
-
if (process.env.DEBUG && console.log("shouldRun", typeof e, e), !e) {
|
|
8329
|
+
if (!await mn.evaluateConditions(n.on.if, { inputs: t })) {
|
|
8331
8330
|
console.log(`⏩ Skipped ${n.id} based on conditions: ${n.on.if}`, { inputs: t });
|
|
8332
8331
|
continue;
|
|
8333
8332
|
}
|
|
@@ -8902,16 +8901,12 @@ async function Jo(e) {
|
|
|
8902
8901
|
}
|
|
8903
8902
|
async function Yo(e) {
|
|
8904
8903
|
let { step: t, stepIndex: n } = e, r = t.id || `step-${n}`, i = t.name || r;
|
|
8905
|
-
if (t.if) {
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
report: null
|
|
8912
|
-
};
|
|
8913
|
-
}
|
|
8914
|
-
return t.eval ? Xo({
|
|
8904
|
+
return t.if && !await mn.evaluateConditions(t.if, e.executionContext) ? (Uo && console.log(`⏩ Skipped step ${t.id} based on condition: ${t.if}`, e.executionContext), {
|
|
8905
|
+
failed: !1,
|
|
8906
|
+
cancelled: !1,
|
|
8907
|
+
skipped: !0,
|
|
8908
|
+
report: null
|
|
8909
|
+
}) : t.eval ? Xo({
|
|
8915
8910
|
...e,
|
|
8916
8911
|
stepId: r,
|
|
8917
8912
|
stepName: i,
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/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