diff --git a/build/index.js b/build/index.js index 7f16358..aec576b 100644 --- a/build/index.js +++ b/build/index.js @@ -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(); }); } diff --git a/cleanup/index.js b/cleanup/index.js index 8425ae4..ff72650 100644 --- a/cleanup/index.js +++ b/cleanup/index.js @@ -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(); }); } diff --git a/converge/index.js b/converge/index.js index f89a0f9..0d40b58 100644 --- a/converge/index.js +++ b/converge/index.js @@ -43844,15 +43844,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(); }); } diff --git a/dismiss/index.js b/dismiss/index.js index 71e3010..56e60e1 100644 --- a/dismiss/index.js +++ b/dismiss/index.js @@ -43844,15 +43844,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(); }); } diff --git a/install/index.js b/install/index.js index 912014f..8cdbac6 100644 --- a/install/index.js +++ b/install/index.js @@ -43962,15 +43962,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(); }); } diff --git a/run/index.js b/run/index.js index ad71c75..ba7228d 100644 --- a/run/index.js +++ b/run/index.js @@ -43916,15 +43916,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(); }); } diff --git a/src/manager.ts b/src/manager.ts index 8131ad8..de03cc9 100644 --- a/src/manager.ts +++ b/src/manager.ts @@ -62,16 +62,8 @@ export class Manager { const tmpFile = tmp.fileSync() const tmpFilePath = tmpFile.name await 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() }