Skip to content

Commit f2653b1

Browse files
committed
add fix for artifact debug
1 parent daa63f3 commit f2653b1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

browserstack-report-action/dist/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41934,6 +41934,8 @@ class ArtifactManager {
4193441934
// Write content
4193541935
fs.writeFileSync(`browserstack-artifacts/${fileName}`, report);
4193641936
const fileStat = fs.statSync(filePath);
41937+
const content = fs.readFileSync(`browserstack-artifacts/${fileName}`, 'utf8');
41938+
core.info(`Successfully read file: ${filePath} (${content.length} bytes)`);
4193741939
core.exportVariable('BROWSERSTACK_REPORT_PATH', filePath);
4193841940
core.setOutput('fileStat', fileStat);
4193941941
core.setOutput('report_file_path', filePath);

browserstack-report-action/src/utils/ArtifactManager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class ArtifactManager {
2424
// Write content
2525
fs.writeFileSync(`browserstack-artifacts/${fileName}`, report);
2626
const fileStat = fs.statSync(filePath);
27+
const content = fs.readFileSync(`browserstack-artifacts/${fileName}`, 'utf8');
28+
core.info(`Successfully read file: ${filePath} (${content.length} bytes)`);
2729
core.exportVariable('BROWSERSTACK_REPORT_PATH', filePath);
2830
core.setOutput('fileStat', fileStat);
2931
core.setOutput('report_file_path', filePath);

0 commit comments

Comments
 (0)