Skip to content

Commit 96a0938

Browse files
committed
Update main.js
1 parent fbd4073 commit 96a0938

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ async function run() {
4646

4747
if (artifact) {
4848
body += `\n[Full coverage report](../actions/runs/${github.context.runId}/artifacts/${artifact.id})`;
49+
50+
core.setOutput('artifact-id', artifact.id);
4951
}
5052

5153
updateComment ? await upsertComment(body, commentHeaderPrefix, octokit) : await createComment(body, octokit);
@@ -58,7 +60,6 @@ async function run() {
5860
}
5961

6062
core.setOutput("total-coverage", totalCoverage);
61-
core.setOutput('artifact-id', artifact ? artifact.id : null);
6263

6364
if (!isMinimumCoverageReached) {
6465
throw Error(errorMessage);

0 commit comments

Comments
 (0)