File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
browserstack-report-action Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -41959,11 +41959,13 @@ class ArtifactManager {
4195941959 return `File saved locally at: ${filePath}`;
4196041960 }
4196141961 const artifactName = `browserstack`;
41962- const relativeFilePath = path.relative(artifactDir, filePath);
41962+ const cwdPath = path.join(process.cwd(), 'report.html');
41963+ fs.copyFileSync(filePath, cwdPath);
41964+ core.info(`Copied report to ${cwdPath}`);
4196341965 const uploadResult = await artifactClient.uploadArtifact(
4196441966 artifactName,
41965- [relativeFilePath ],
41966- artifactDir ,
41967+ [fileName ],
41968+ process.cwd() ,
4196741969 { continueOnError: true }
4196841970 );
4196941971
Original file line number Diff line number Diff line change @@ -49,11 +49,13 @@ class ArtifactManager {
4949 return `File saved locally at: ${ filePath } ` ;
5050 }
5151 const artifactName = `browserstack` ;
52- const relativeFilePath = path . relative ( artifactDir , filePath ) ;
52+ const cwdPath = path . join ( process . cwd ( ) , 'report.html' ) ;
53+ fs . copyFileSync ( filePath , cwdPath ) ;
54+ core . info ( `Copied report to ${ cwdPath } ` ) ;
5355 const uploadResult = await artifactClient . uploadArtifact (
5456 artifactName ,
55- [ relativeFilePath ] ,
56- artifactDir ,
57+ [ fileName ] ,
58+ process . cwd ( ) ,
5759 { continueOnError : true }
5860 ) ;
5961
You can’t perform that action at this time.
0 commit comments