File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
browserstack-report-action Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -38838,8 +38838,8 @@ class UploadFileForArtifact {
3883838838 this.report = report;
3883938839 }
3884038840
38841- static async saveReportInFile(report ) {
38842- if (!report) {
38841+ async saveReportInFile() {
38842+ if (!this. report) {
3884338843 core.debug('No HTML content available to save as artifact');
3884438844 return '';
3884538845 }
@@ -38855,7 +38855,7 @@ class UploadFileForArtifact {
3885538855 core.exportVariable("BROWSERSTACK_REPORT_NAME", artifactName);
3885638856
3885738857 // Write content
38858- fs.writeFileSync(path.join(pathName, fileName), report);
38858+ fs.writeFileSync(path.join(pathName, fileName), this. report);
3885938859 } catch (error) {
3886038860 core.warning(`Failed to save file: ${error.message}`);
3886138861 return '';
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ class UploadFileForArtifact {
77 this . report = report ;
88 }
99
10- static async saveReportInFile ( report ) {
11- if ( ! report ) {
10+ async saveReportInFile ( ) {
11+ if ( ! this . report ) {
1212 core . debug ( 'No HTML content available to save as artifact' ) ;
1313 return '' ;
1414 }
@@ -24,7 +24,7 @@ class UploadFileForArtifact {
2424 core . exportVariable ( "BROWSERSTACK_REPORT_NAME" , artifactName ) ;
2525
2626 // Write content
27- fs . writeFileSync ( path . join ( pathName , fileName ) , report ) ;
27+ fs . writeFileSync ( path . join ( pathName , fileName ) , this . report ) ;
2828 } catch ( error ) {
2929 core . warning ( `Failed to save file: ${ error . message } ` ) ;
3030 return '' ;
You can’t perform that action at this time.
0 commit comments