Run failed, but all jobs successful

Earlier, I got an email saying a run failed. However, upon opening the email it says “All jobs were successful”.

The “View workflow run” button links to a run which failed but the only job succeeded.
image

Is this a bug, or did I do something wrong? The repo is public and can be found here. Thanks!

A run (i.e. a check) consists of one or more jobs (i.e. sub-tasks), but what matters in terms of a check passing is the final exit code returned by the whole “run”. You should check that your check script (or whatever you’re using) is actually exiting with the correct status. If you don’t explicitly set an exit status, this might result in the last exit status of a sub command (e.g. in a Bash script it could be the last command executed).