File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
browserstack-report-action Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -41961,13 +41961,11 @@ class ArtifactManager {
4196141961 return `File saved locally at: ${filePath}`;
4196241962 }
4196341963 const artifactName = `browserstack`;
41964- // const cwdPath = path.join(process.cwd(), 'browserstack-artifacts/reports.html');
41965- // fs.copyFileSync(filePath, cwdPath);
41966- // core.info(`Copied report to ${cwdPath}`);
41964+ const fileNPath = path.join('browserstack-artifacts', fileName);
4196741965 const uploadResult = await artifactClient.uploadArtifact(
4196841966 artifactName,
41969- [`report.html`],
41970- 'browserstack-artifacts',
41967+ [path.resolve(fileNPath)],
41968+ path.resolve( 'browserstack-artifacts'),
4197141969 { continueOnError: true }
4197241970 );
4197341971
Original file line number Diff line number Diff line change @@ -51,13 +51,11 @@ class ArtifactManager {
5151 return `File saved locally at: ${ filePath } ` ;
5252 }
5353 const artifactName = `browserstack` ;
54- // const cwdPath = path.join(process.cwd(), 'browserstack-artifacts/reports.html');
55- // fs.copyFileSync(filePath, cwdPath);
56- // core.info(`Copied report to ${cwdPath}`);
54+ const fileNPath = path . join ( 'browserstack-artifacts' , fileName ) ;
5755 const uploadResult = await artifactClient . uploadArtifact (
5856 artifactName ,
59- [ `report.html` ] ,
60- 'browserstack-artifacts' ,
57+ [ path . resolve ( fileNPath ) ] ,
58+ path . resolve ( 'browserstack-artifacts' ) ,
6159 { continueOnError : true }
6260 ) ;
6361
You can’t perform that action at this time.
0 commit comments