diff --git a/index.js b/index.js index 968ccd6..edd768c 100644 --- a/index.js +++ b/index.js @@ -17,14 +17,12 @@ if (opts.key) { } // do the secrets loader -const { config } = require("@dotenvx/dotenvx") require("dotenv").config({ path: opts.path, processEnv: dotenvPlain, debug: core.isDebug() ? true : false }) - -const dotenvx = config({ +require("@dotenvx/dotenvx").config({ path: opts.path, processEnv: secretsTmp, debug: core.isDebug() ? true : false @@ -35,17 +33,6 @@ if (dotenvx.error) { process.exit(1) } -core.group("Parsed data", () => { - core.info(JSON.stringify(secretsTmp)) -}) -core.group("dotenv-keys meta configs", () => { - core.info(JSON.stringify({ - loaded: true, - loader: "github-actions", - last_loaded_dir: process.cwd() - })) -}) - Object.keys(secretsTmp).forEach(key => { const value = secretsTmp[key] @@ -66,6 +53,17 @@ Object.keys(secretsTmp).forEach(key => { } }) +core.group("Parsed data (w/o decryption)", () => { + core.info(JSON.stringify(dotenvPlain, null, 2)) +}) +core.group("dotenv-keys meta configs", () => { + core.info(JSON.stringify({ + loaded: true, + loader: "github-actions", + last_loaded_dir: process.cwd() + }, null, 2)) +}) + core.setOutput("DOTENV_KEYS_LOADER", "github-actions") core.setOutput("DOTENV_KEYS_LOADED", "true") core.setOutput("LAST_DOTENV_DIR", process.cwd())