diff --git a/github/fetch-job-inputs/index.js b/github/fetch-job-inputs/index.js index 0764b834..45d0f1e3 100644 --- a/github/fetch-job-inputs/index.js +++ b/github/fetch-job-inputs/index.js @@ -24829,14 +24829,6 @@ module.exports = { } -/***/ }), - -/***/ 1984: -/***/ ((module) => { - -module.exports = eval("require")("@ctrlplane/logger"); - - /***/ }), /***/ 2613: @@ -26690,8 +26682,6 @@ var __webpack_exports__ = {}; // EXTERNAL MODULE: ../../node_modules/@actions/core/lib/core.js var core = __nccwpck_require__(7184); -// EXTERNAL MODULE: ../../node_modules/@vercel/ncc/dist/ncc/@@notfound.js?@ctrlplane/logger -var logger = __nccwpck_require__(1984); ;// CONCATENATED MODULE: ../../packages/node-sdk/dist/index.js // src/runtime.ts var BASE_PATH = "http://localhost".replace(/\/+$/, ""); @@ -27879,7 +27869,6 @@ var DefaultApi = class extends BaseAPI { ;// CONCATENATED MODULE: ./src/index.ts - const config = new Configuration({ basePath: core.getInput("api_url", { required: true }) + "/api", apiKey: core.getInput("api_key", { required: true }), @@ -27894,13 +27883,15 @@ async function run() { core.setOutput("target_name", target?.name); core.setOutput("environment_name", environment?.name); core.setOutput("release_version", release?.version); - logger.logger.info("config", config); + core.info(`Target name: ${target?.name}`); + core.info(`Environment name: ${environment?.name}`); + core.info(`Release version: ${release?.version}`); + core.info(`Config: ${JSON.stringify(config)}`); + core.info(`Variables: ${JSON.stringify(variables)}`); for (const [key, value] of Object.entries(config)) { - logger.logger.info("config", key, value); core.setOutput(`config_${key}`, value); } for (const [key, value] of Object.entries(variables ?? {})) { - logger.logger.info("variable", key, value); core.setOutput(`variable_${key}`, value); } }) diff --git a/integrations/fetch-job-inputs/src/index.ts b/integrations/fetch-job-inputs/src/index.ts index 33403915..aaad39c5 100644 --- a/integrations/fetch-job-inputs/src/index.ts +++ b/integrations/fetch-job-inputs/src/index.ts @@ -1,6 +1,5 @@ import * as core from "@actions/core"; -import { logger } from "@ctrlplane/logger"; import { Configuration, DefaultApi } from "@ctrlplane/node-sdk"; const config = new Configuration({ @@ -22,14 +21,16 @@ async function run() { core.setOutput("environment_name", environment?.name); core.setOutput("release_version", release?.version); - logger.info("config", config); + core.info(`Target name: ${target?.name}`); + core.info(`Environment name: ${environment?.name}`); + core.info(`Release version: ${release?.version}`); + core.info(`Config: ${JSON.stringify(config)}`); + core.info(`Variables: ${JSON.stringify(variables)}`); for (const [key, value] of Object.entries(config)) { - logger.info("config", key, value); core.setOutput(`config_${key}`, value); } for (const [key, value] of Object.entries(variables ?? {})) { - logger.info("variable", key, value); core.setOutput(`variable_${key}`, value); } })