title: github action combine workflow_dispatch and push in the same workflow
body: <p>I am trying to figure out how to combine manual trigger and other trigers (push for example) in the same workflow</p>
  <p>This is my manual action</p>
  <pre><code>
  on:
    workflow_dispatch:
      inputs:
        environment:
          type: environment
          default: DEV
          required: true
  
  env:
    ENVIRONMENT: ${{ github.event.inputs.environment }}
  .
  .
  .
  </code></pre>
  <p>I want something like</p>
  <pre><code>on:
    push:
      branches:
      - main
      - dev
    workflow_dispatch:
      inputs:
        environment:
          type: environment
          default: DEV
          required: true
  
  env:
    ENVIRONMENT: ${{ github.event.inputs.environment }} or {{ DEV if dev }} or {{ PROD if main }}
  .
  .
  .
  
  </code></pre>