Tente un fixe pour la pipeline.

This commit is contained in:
Simon
2023-05-18 21:17:34 +00:00
parent 226a3a3856
commit 123733def0
7 changed files with 34 additions and 24 deletions

View File

@@ -5,10 +5,11 @@ const { exit } = require("process");
// Fetch envs to target the right folder
const slug = process.env["PACKAGE_NAME"];
const workDir = process.env["CI_PROJECT_DIR"];
const root = process.env["ENTRY_FOLDER"];
if (!slug || !root) exit(1);
let workingDirectory = path.join(root, slug);
const slug = process.env["PACKAGE_NAME"];
if (!workDir || !slug || !root) exit(1);
let workingDirectory = path.join(workDir, root, slug);
// extract metadata from them
fs.readdir(workingDirectory, (err, files) => {