From 42edc3d2e31653a4f3d6cde0946efc5df725ca71 Mon Sep 17 00:00:00 2001 From: Ramana Reddy Date: Thu, 25 Jul 2024 16:48:21 +0530 Subject: [PATCH] debug --- dist/index.js | 9 +-------- src/yaml.js | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/dist/index.js b/dist/index.js index af0c930..966d64c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6791,13 +6791,6 @@ var __webpack_exports__ = {}; // ESM COMPAT FLAG __nccwpck_require__.r(__webpack_exports__); -// NAMESPACE OBJECT: ./src/yaml.js -var yaml_namespaceObject = {}; -__nccwpck_require__.r(yaml_namespaceObject); -__nccwpck_require__.d(yaml_namespaceObject, { - "I": () => (generateGithubReportFile) -}); - // EXTERNAL MODULE: ./node_modules/@actions/core/lib/core.js var core = __nccwpck_require__(2186); // EXTERNAL MODULE: ./node_modules/@actions/exec/lib/exec.js @@ -10887,7 +10880,7 @@ async function run() { // create default config file with name `github-report.yaml` console.log('Generating github report default`'); await generateGithubReportFile(githubToken); - params.push(`-rc=${yaml_namespaceObject.DEFAULT_GITHUB_REPORT_CONFIG}`); + params.push(`-rc=${DEFAULT_GITHUB_REPORT_CONFIG}`); } else if (reportConfig && reportConfig.trim().length > 0) { console.log('Generating github report with custom config: ', reportConfig); await generateGithubReportFile(githubToken, reportConfig); diff --git a/src/yaml.js b/src/yaml.js index 6bcc00d..8207293 100644 --- a/src/yaml.js +++ b/src/yaml.js @@ -7,7 +7,7 @@ const GITHUB_REPOSITORY_OWNER = process.env.GITHUB_REPOSITORY_OWNER; const GITHUB_REPOSITORY = process.env.GITHUB_REPOSITORY.replace(`${GITHUB_REPOSITORY_OWNER}/`, ''); const GITHUB_WORKSPACE = process.env.GITHUB_WORKSPACE; -const DEFAULT_GITHUB_REPORT_CONFIG = 'default-github-report.yaml'; +export const DEFAULT_GITHUB_REPORT_CONFIG = 'default-github-report.yaml'; export async function generateGithubReportFile(token, reportConfigFileName = DEFAULT_GITHUB_REPORT_CONFIG) { const gitHubRepoConfig = {