Skip to content

Commit 472c5f1

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

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

browserstack-report-action/dist/index.js

Lines changed: 3 additions & 3 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(), 'browserstack-artifact/report.html');
41962+
const cwdPath = path.join(process.cwd(), 'browserstack-artifacts/reports.html');
4196341963
fs.copyFileSync(filePath, cwdPath);
4196441964
core.info(`Copied report to ${cwdPath}`);
4196541965
const uploadResult = await artifactClient.uploadArtifact(
4196641966
artifactName,
41967-
[fileName],
41968-
process.cwd()+"/browserstack-artifact",
41967+
['reports.html'],
41968+
process.cwd()+"/browserstack-artifacts",
4196941969
{ continueOnError: true }
4197041970
);
4197141971

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

Lines changed: 3 additions & 3 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(), 'browserstack-artifact/report.html');
52+
const cwdPath = path.join(process.cwd(), 'browserstack-artifacts/reports.html');
5353
fs.copyFileSync(filePath, cwdPath);
5454
core.info(`Copied report to ${cwdPath}`);
5555
const uploadResult = await artifactClient.uploadArtifact(
5656
artifactName,
57-
[fileName],
58-
process.cwd()+"/browserstack-artifact",
57+
['reports.html'],
58+
process.cwd()+"/browserstack-artifacts",
5959
{ continueOnError: true }
6060
);
6161

0 commit comments

Comments
 (0)