Skip to content

Commit b98259e

Browse files
committed
artifact name update
1 parent c6c1a35 commit b98259e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

browserstack-report-action/dist/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38851,10 +38851,12 @@ class UploadFileForArtifact {
3885138851
try {
3885238852
const pathName = "browserstack-reports-atifact"
3885338853
const fileName = `bstack-report.html`;
38854+
const artifactName = "browserstack-report";
3885438855
// Create artifacts directory
3885538856
fs.mkdirSync(pathName, { recursive: true });
3885638857
//save path in a env variable
3885738858
core.exportVariable('BROWSERSTACK_REPORT_PATH', pathName);
38859+
core.exportVariable("BROWSERSTACK_REPORT_NAME", artifactName);
3885838860

3885938861
// Write content
3886038862
fs.writeFileSync(path.join(pathName,fileName), report);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ class UploadFileForArtifact {
1414
try {
1515
const pathName = "browserstack-reports-atifact"
1616
const fileName = `bstack-report.html`;
17+
const artifactName = "browserstack-report";
1718
// Create artifacts directory
1819
fs.mkdirSync(pathName, { recursive: true });
1920
//save path in a env variable
2021
core.exportVariable('BROWSERSTACK_REPORT_PATH', pathName);
22+
core.exportVariable("BROWSERSTACK_REPORT_NAME", artifactName);
2123

2224
// Write content
2325
fs.writeFileSync(path.join(pathName,fileName), report);

0 commit comments

Comments
 (0)