mirror of
https://github.com/werf/actions.git
synced 2026-02-05 10:56:23 +03:00
Output envs loaded by the dotenv instead of printing a source file content
This commit is contained in:
@@ -43843,15 +43843,8 @@ class Manager {
|
||||
const tmpFile = tmp.fileSync();
|
||||
const tmpFilePath = tmpFile.name;
|
||||
yield this.Exec(['ci-env', 'github', '--as-env-file', '-o', tmpFilePath]);
|
||||
dotenv.config({ path: tmpFilePath });
|
||||
fs.readFile(tmpFilePath, null, function (err, contents) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
else {
|
||||
console.log(contents.toString());
|
||||
}
|
||||
});
|
||||
const res = dotenv.config({ path: tmpFilePath });
|
||||
console.log(res.parsed);
|
||||
tmpFile.removeCallback();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user