Skip to content

Commit

Permalink
fix: #118
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Apr 6, 2024
1 parent 2946896 commit 59d34a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
image-directory-path: "./images"
disable-branch: true
report-file-path: './'
8 changes: 7 additions & 1 deletion src/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ export const compare = async (config: Config): Promise<CompareOutput> =>
});

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 => {
Expand Down

0 comments on commit 59d34a4

Please sign in to comment.