Trigger workflow on a specific status context

I’m using an external application to run some check on PRs and I’d like to run a post-build github workflow when this one fails, to notify relevant people on slack.

For this purpose I need to filter the job by event context and state:

on: status

jobs:
  notification:
    name: Notify check failed
    runs-on: ubuntu-latest
    if: ${{ github.event.context == 'my/check/results' && github.event.state == 'failure' }}
    ...

This works but triggers dozens of canceled workflows.
I’d like I could define the triggering event with some filter on the status:

on: 
  status:
    context: 'my/check/results'
    state: 'failure'

jobs:
  notification:
    name: Notify check failed
    runs-on: ubuntu-latest
    ...
1 Like

What’s going on it’s a lot on here really didn’t even do