File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
.github/actions/check-and-status Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 69
69
success: 'success',
70
70
failure: 'failure',
71
71
pending: 'in_progress',
72
- error: 'neutral'
72
+ error: 'neutral',
73
+ skipped: 'failure'
73
74
};
74
75
const conclusion = conclusionToState[checkState] ?? 'neutral';
75
76
80
81
81
82
let run = list.data.check_runs
82
83
.find(cr => cr.name === checkName && cr.status !== 'completed');
83
-
84
- core.info(`Using SHA : ${sha}`);
85
- core.info(`Found the following runs : ${list.data.check_runs}`);
86
-
84
+
87
85
if (!run) {
88
- core.info('Creating a new check-run ${checkName}”');
86
+ core.info('Creating a new check-run ” ${checkName}”');
89
87
run = (await github.rest.checks.create({
90
88
owner, repo,
91
89
name : checkName,
@@ -113,7 +111,9 @@ runs:
113
111
//------------------------------------------------------------------
114
112
// 4) Finish the run when we have a final state
115
113
//------------------------------------------------------------------
116
- if (conclusion !== 'in_progress') {
114
+ core.info(`Conclusion for ”${checkName}” is ”${conclusion} (state=${checkState})”`);
115
+
116
+ if (conclusion !== 'in_progress') {
117
117
await github.rest.checks.update({
118
118
owner, repo, check_run_id : run.id,
119
119
status : ' completed' ,
You can’t perform that action at this time.
0 commit comments