check_run conclusion

Hi I’m trying to setup a course for my student, to assert some assigments.
But debug events is not that easy although doable.

The step that I’m trying to validate is fairly simple:

  • The students enables CI
  • The CI check succeed
  • An issue is closed and would proceed on the next step

The mention step can be find

I’m doing something wrong? How to debug better check_run events? where can I read the payload of it?

1 Like

Another way to do it is enable CI check on the protection rules for the branch.

Althought I didn’t manage to disable reviews trough updateBranchProtection. Is there any example?

Hi @m3kh!

If I understand correctly you’re trying to trigger a step when a check_run has completed, and is successful?

You should be able to do something like this:

  - title: My step
    event: check_run.completed
      - type: gate
        left: '%payload.check_run.conclusion%'
        operator: ===
        right: success

First we use the check_run.completed event to trigger the step, and then we use the gateaction to check that it was successful.

This will block the step from completing unless the check run ended with a successful status. You can learn more about the check run event here:

Let me know if that helps at all!




Indeed this helped, thanks @jasonetco