Skip to content

Commit ee2f894

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Add action for restrict access to users and add comments and checks
Signed-off-by: Jakub Stejskal <[email protected]>
1 parent 2ee2a24 commit ee2f894

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/actions/check-and-status/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ runs:
6969
success: 'success',
7070
failure: 'failure',
7171
pending: 'in_progress',
72-
error: 'neutral'
72+
error: 'neutral',
73+
skipped: 'failure'
7374
};
7475
const conclusion = conclusionToState[checkState] ?? 'neutral';
7576
@@ -80,12 +81,9 @@ runs:
8081

8182
let run = list.data.check_runs
8283
.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+
8785
if (!run) {
88-
core.info('Creating a new check-run ${checkName}”');
86+
core.info('Creating a new check-run ${checkName}”');
8987
run = (await github.rest.checks.create({
9088
owner, repo,
9189
name: checkName,
@@ -113,7 +111,9 @@ runs:
113111
//------------------------------------------------------------------
114112
// 4) Finish the run when we have a final state
115113
//------------------------------------------------------------------
116-
if (conclusion !== 'in_progress') {
114+
core.info(`Conclusion for ”${checkName}” is ”${conclusion} (state=${checkState})”`);
115+
116+
if (conclusion !== 'in_progress') {
117117
await github.rest.checks.update({
118118
owner, repo, check_run_id: run.id,
119119
status: 'completed',

0 commit comments

Comments
 (0)