Skip to content

Commit b2e7673

Browse files
committed
add fix for artifact debug
1 parent aa49dfd commit b2e7673

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

browserstack-report-action/dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41959,13 +41959,13 @@ class ArtifactManager {
4195941959
return `File saved locally at: ${filePath}`;
4196041960
}
4196141961
const artifactName = `browserstack`;
41962-
const cwdPath = path.join(process.cwd(), 'report.html');
41962+
const cwdPath = path.join(process.cwd(), 'browserstack-artifact/report.html');
4196341963
fs.copyFileSync(filePath, cwdPath);
4196441964
core.info(`Copied report to ${cwdPath}`);
4196541965
const uploadResult = await artifactClient.uploadArtifact(
4196641966
artifactName,
4196741967
[fileName],
41968-
process.cwd(),
41968+
process.cwd()+"/browserstack-artifact",
4196941969
{ continueOnError: true }
4197041970
);
4197141971

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ class ArtifactManager {
4949
return `File saved locally at: ${filePath}`;
5050
}
5151
const artifactName = `browserstack`;
52-
const cwdPath = path.join(process.cwd(), 'report.html');
52+
const cwdPath = path.join(process.cwd(), 'browserstack-artifact/report.html');
5353
fs.copyFileSync(filePath, cwdPath);
5454
core.info(`Copied report to ${cwdPath}`);
5555
const uploadResult = await artifactClient.uploadArtifact(
5656
artifactName,
5757
[fileName],
58-
process.cwd(),
58+
process.cwd()+"/browserstack-artifact",
5959
{ continueOnError: true }
6060
);
6161

0 commit comments

Comments
 (0)