File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 42
42
id : comment
43
43
env :
44
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
+ STATUS : ${{ steps.report.outputs.STATUS }}
45
46
working-directory : ci/report
46
47
run : |
47
48
npm ci
Original file line number Diff line number Diff line change @@ -3,15 +3,12 @@ const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
3
3
const context = github . context ;
4
4
const { sha } = context ;
5
5
6
- const STEP_REPORT = "report" ;
7
- const STEP_UPLOAD = "upload" ;
8
-
9
6
const report_url = `https://code.grida.co/tests/reports/${ sha } ` ;
10
7
11
8
let message ;
12
9
13
10
if ( context . payload . pull_request && context . eventName === "pull_request" ) {
14
- const conclusion = steps [ STEP_REPORT ] . conclusion ;
11
+ const conclusion = process . env . STATUS || "unknown" ;
15
12
16
13
switch ( conclusion ) {
17
14
case "success" :
@@ -21,6 +18,7 @@ if (context.payload.pull_request && context.eventName === "pull_request") {
21
18
message = "Your PR failed some tests :x:" ;
22
19
break ;
23
20
case "skipped" :
21
+ case "unknown" :
24
22
break ;
25
23
}
26
24
You can’t perform that action at this time.
0 commit comments