Skip to content

Commit b5ef1d0

Browse files
committed
add fix for artifact debug
1 parent f823dbb commit b5ef1d0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

browserstack-report-action/dist/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41933,9 +41933,14 @@ class ArtifactManager {
4193341933

4193441934
// Write content
4193541935
fs.writeFileSync(filePath, report);
41936+
const fileStat = fs.statSync(filePath);
4193641937
core.exportVariable('BROWSERSTACK_REPORT_PATH', filePath);
41938+
core.setOutput('fileStat', fileStat);
4193741939
core.setOutput('report_file_path', filePath);
4193841940
core.setOutput('report_dir', artifactDir);
41941+
41942+
const dirContents = fs.readdirSync(artifactDir);
41943+
core.info(`Directory contents of ${artifactDir}: ${dirContents.join(', ')}`);
4193941944

4194041945
// Upload as artifact
4194141946
let artifactClient;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ class ArtifactManager {
2323

2424
// Write content
2525
fs.writeFileSync(filePath, report);
26+
const fileStat = fs.statSync(filePath);
2627
core.exportVariable('BROWSERSTACK_REPORT_PATH', filePath);
28+
core.setOutput('fileStat', fileStat);
2729
core.setOutput('report_file_path', filePath);
2830
core.setOutput('report_dir', artifactDir);
31+
32+
const dirContents = fs.readdirSync(artifactDir);
33+
core.info(`Directory contents of ${artifactDir}: ${dirContents.join(', ')}`);
2934

3035
// Upload as artifact
3136
let artifactClient;

0 commit comments

Comments
 (0)