From 1d91fd29fd75d2366a40f7cce6ed88db597b0b2f Mon Sep 17 00:00:00 2001 From: Alexey Igrychev Date: Wed, 27 May 2020 00:17:08 +0100 Subject: [PATCH] Show ci-env file content --- build-and-publish/index.js | 3 +++ cleanup/index.js | 3 +++ converge/index.js | 3 +++ deploy/index.js | 3 +++ install/index.js | 3 +++ src/manager.ts | 5 +++++ 6 files changed, 20 insertions(+) diff --git a/build-and-publish/index.js b/build-and-publish/index.js index fc01cd5..a47c7c1 100644 --- a/build-and-publish/index.js +++ b/build-and-publish/index.js @@ -5070,6 +5070,9 @@ class Manager { 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) { + console.log(contents.toString()); + }); tmpFile.removeCallback(); }); } diff --git a/cleanup/index.js b/cleanup/index.js index d08b87a..4a38a4e 100644 --- a/cleanup/index.js +++ b/cleanup/index.js @@ -5070,6 +5070,9 @@ class Manager { 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) { + console.log(contents.toString()); + }); tmpFile.removeCallback(); }); } diff --git a/converge/index.js b/converge/index.js index 4cca642..d5a7894 100644 --- a/converge/index.js +++ b/converge/index.js @@ -5070,6 +5070,9 @@ class Manager { 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) { + console.log(contents.toString()); + }); tmpFile.removeCallback(); }); } diff --git a/deploy/index.js b/deploy/index.js index 0a8b31c..713b1bd 100644 --- a/deploy/index.js +++ b/deploy/index.js @@ -5070,6 +5070,9 @@ class Manager { 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) { + console.log(contents.toString()); + }); tmpFile.removeCallback(); }); } diff --git a/install/index.js b/install/index.js index 069fa9c..cc6bebf 100644 --- a/install/index.js +++ b/install/index.js @@ -4083,6 +4083,9 @@ class Manager { 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) { + console.log(contents.toString()); + }); tmpFile.removeCallback(); }); } diff --git a/src/manager.ts b/src/manager.ts index 2b16c5a..6e7ea64 100644 --- a/src/manager.ts +++ b/src/manager.ts @@ -59,6 +59,11 @@ export class Manager { 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) { + console.log(contents.toString()) + }) + tmpFile.removeCallback() }