Trigger workflow if condition

Hello,

I am trying to trigger a workflow if and only if deployment_status.state == 'success' when deploying to Vercel.

Part of my workflow file is:

name: Test Deployment

on: [deployment_status]

jobs:
  test:
    runs-on: ubuntu-latest
    if: github.event.deployment_status.state == 'success'
    steps:
    ...

I would like to move the if condition to the workflow level. Otherwise, there is a skipped check when deployment status is changed but does not match the value success (when it is started).

Any thoughts if this is possible? Or a known feature request?

Thanks!