Skip to content

Commit afdff2b

Browse files
committed
add fix for artifact debug
1 parent e375ae4 commit afdff2b

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

browserstack-report-action/dist/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)