Skip to content

Commit f19c9ec

Browse files
committed
add fix for artifact
1 parent c492cc5 commit f19c9ec

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

browserstack-report-action/dist/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41930,9 +41930,7 @@ class ArtifactManager {
4193041930
fs.mkdirSync(artifactDir, { recursive: true });
4193141931

4193241932
// Create HTML file
41933-
const sanitizedBuildName = buildName.replace(/[^a-z0-9]/gi, '_').toLowerCase();
41934-
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
41935-
const fileName = `browserstack-report-${sanitizedBuildName}-${timestamp}.html`;
41933+
const fileName = `index.html`;
4193641934
const filePath = path.join(artifactDir, fileName);
4193741935

4193841936
// Write content
@@ -41954,7 +41952,7 @@ class ArtifactManager {
4195441952
core.warning('Artifact API not available. Report saved locally only.');
4195541953
return `File saved locally at: ${filePath}`;
4195641954
}
41957-
const artifactName = `browserstack-report-${sanitizedBuildName}`;
41955+
const artifactName = `browserstack-test-report`;
4195841956

4195941957
const uploadResult = await artifactClient.uploadArtifact(
4196041958
artifactName,

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ class ArtifactManager {
1818
fs.mkdirSync(artifactDir, { recursive: true });
1919

2020
// Create HTML file
21-
const sanitizedBuildName = buildName.replace(/[^a-z0-9]/gi, '_').toLowerCase();
22-
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
23-
const fileName = `browserstack-report-${sanitizedBuildName}-${timestamp}.html`;
21+
const fileName = `index.html`;
2422
const filePath = path.join(artifactDir, fileName);
2523

2624
// Write content
@@ -42,7 +40,7 @@ class ArtifactManager {
4240
core.warning('Artifact API not available. Report saved locally only.');
4341
return `File saved locally at: ${filePath}`;
4442
}
45-
const artifactName = `browserstack-report-${sanitizedBuildName}`;
43+
const artifactName = `browserstack-test-report`;
4644

4745
const uploadResult = await artifactClient.uploadArtifact(
4846
artifactName,

0 commit comments

Comments
 (0)