cispacempt-v2 0.1.4 → 0.1.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/package.json +1 -1
- package/src/index.js +4 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -106,6 +106,9 @@ module.exports = {
|
|
|
106
106
|
const convertMsToSec = (ms) => (ms / 1000).toFixed(2);
|
|
107
107
|
|
|
108
108
|
const stages = Object.entries(ciScript.stages).map(([name, data]) => ({ name, ...data }));
|
|
109
|
+
if (typeof repoName !== 'string') {
|
|
110
|
+
repoName = String(typeof repoName === 'function' ? repoName() : repoName);
|
|
111
|
+
}
|
|
109
112
|
const tempDir = path.join(__dirname, tmp === true ? "tmp/" + repoName : repoName);
|
|
110
113
|
|
|
111
114
|
// Helper to substitute env variables in commands
|
|
@@ -117,6 +120,7 @@ module.exports = {
|
|
|
117
120
|
|
|
118
121
|
// Detect if fileSystem is a directory path string
|
|
119
122
|
const isFileSystemPath = typeof fileSystem === 'string' && fs.existsSync(fileSystem) && fs.statSync(fileSystem).isDirectory();
|
|
123
|
+
console.log(isFileSystemPath);
|
|
120
124
|
|
|
121
125
|
const stageExecuted = {}; // Track executed stages
|
|
122
126
|
|