Skip to content

Commit f98f10c

Browse files
fix comment
1 parent 2f18e73 commit f98f10c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/codetest-report.yml

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
id: comment
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
STATUS: ${{ steps.report.outputs.STATUS }}
4546
working-directory: ci/report
4647
run: |
4748
npm ci

ci/report/comment.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@ const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
33
const context = github.context;
44
const { sha } = context;
55

6-
const STEP_REPORT = "report";
7-
const STEP_UPLOAD = "upload";
8-
96
const report_url = `https://code.grida.co/tests/reports/${sha}`;
107

118
let message;
129

1310
if (context.payload.pull_request && context.eventName === "pull_request") {
14-
const conclusion = steps[STEP_REPORT].conclusion;
11+
const conclusion = process.env.STATUS || "unknown";
1512

1613
switch (conclusion) {
1714
case "success":
@@ -21,6 +18,7 @@ if (context.payload.pull_request && context.eventName === "pull_request") {
2118
message = "Your PR failed some tests :x:";
2219
break;
2320
case "skipped":
21+
case "unknown":
2422
break;
2523
}
2624

0 commit comments

Comments
 (0)