Skip to content

Commit e7ecdca

Browse files
committed
fix: restore artifact upload functionality in report preparation
1 parent 4dd91ac commit e7ecdca

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ctrf/report-preparation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export async function prepareReport(
3737
}
3838
report = stripAnsiFromErrors(report)
3939
report = enrichCurrentReportWithRunDetails(report, githubContext)
40-
if (inputs.uploadArtifact) await uploadArtifact(inputs.artifactName, report)
4140

4241
if (shouldGroupTests(inputs)) {
4342
report = groupTestsBySuiteOrFilePath(
@@ -60,6 +59,7 @@ export async function prepareReport(
6059
}
6160

6261
if (inputs.writeCtrfToFile) writeReportToFile(inputs.writeCtrfToFile, report)
62+
if (inputs.uploadArtifact) await uploadArtifact(inputs.artifactName, report)
6363

6464
return report
6565
}

0 commit comments

Comments
 (0)