From 59d34a494d9c170073913c899d6a52d3682e65dc Mon Sep 17 00:00:00 2001 From: bokuweb Date: Sat, 6 Apr 2024 16:05:22 +0900 Subject: [PATCH] fix: #118 --- .github/workflows/test.yml | 1 + src/compare.ts | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45528d7e..4a013380 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,3 +17,4 @@ jobs: github-token: "${{ secrets.GITHUB_TOKEN }}" image-directory-path: "./images" disable-branch: true + report-file-path: './' diff --git a/src/compare.ts b/src/compare.ts index 2d82153a..c3219ebc 100644 --- a/src/compare.ts +++ b/src/compare.ts @@ -34,7 +34,13 @@ export const compare = async (config: Config): Promise => }); if (config.reportFilePath) { - await cpy(path.join(workspace(), './report.html'), config.reportFilePath); + log.info(`reportFilePath ${config.reportFilePath} detected`); + try { + await cpy(workspace() + '/**/*', config.reportFilePath); + log.info(`Succeeded to copy reg data to ${config.reportFilePath}.`); + } catch (e) { + log.error(`Failed to copy reg data to ${config.reportFilePath} reason: ${e}`); + } } emitter.on('complete', result => {