File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
browserstack-report-action Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments