Limiting events for the `on: status` trigger?

Hi there, is it possible to filter which status events cause an on: status build to be triggered?

I would like to limit builds by properties of the status webhook event payload such as context and state, and also the commit ref.

It is possible to use jobs.<name>.if to filter builds, but then the Actions build history gets spammed numerous Skipped jobs.

Thanks in advance.

Hi @rvl, welcome to the GitHub Support Community! Unfortunately not, the status event doesn’t have any types you can filter on so if you’d like to filter events. You’ll need to use the jobs.<name>.if to filter on the webhook contexts you want to filter for. I’ll make sure to pass this on as feedback for events that trigger workflows though!

1 Like

Thanks @thomasshaped.

1 Like

We’d also like to do this.