executant 2.0.2 → 2.0.3
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 +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2695,7 +2695,14 @@ var INIT_STATE = {
|
|
|
2695
2695
|
stepStartMs: 0
|
|
2696
2696
|
};
|
|
2697
2697
|
function appendLog(logFile, text) {
|
|
2698
|
-
if (logFile)
|
|
2698
|
+
if (!logFile) return;
|
|
2699
|
+
try {
|
|
2700
|
+
appendFileSync(logFile, text + "\n");
|
|
2701
|
+
} catch (err) {
|
|
2702
|
+
if (err.code !== "ENOENT") throw err;
|
|
2703
|
+
mkdirSync3(dirname3(logFile), { recursive: true });
|
|
2704
|
+
appendFileSync(logFile, text + "\n");
|
|
2705
|
+
}
|
|
2699
2706
|
}
|
|
2700
2707
|
function onWorkflowStart(ctx, s) {
|
|
2701
2708
|
mkdirSync3(ctx.logDir, { recursive: true });
|