title: Github Action Trigger on multiple on: push: paths
body: <p>In single repo, I want to create more than one trigger for different paths [<code>paths: 'frontend/**'</code> and <code>paths: 'backend/**'</code>] with different parameters for (same) build jobs. Following are the two workflow.</p>
  <pre><code>name: Trigger Jenkins Build [ Build-Portal ]
  on:
    push:
      branches: [ develop ]
      paths: 'frontend/**'
      types: [closed]
  jobs:
    build:
      name: Triggering Jenkins Build [ Build-Portal ]
      runs-on: ubuntu-latest
      if: github.event.pull_request.merged == true
      steps:
      - name: Trigger Build-Portal
        uses: actions/trigger-jenkins@develop
        with:
          ...
          job_name: &quot;Build-Portal&quot;
          job_params: '{&quot;FRESH_BUILD&quot;:&quot;True&quot;, &quot;UI&quot;:&quot;True&quot;, &quot;BUILD_BRANCH&quot;:&quot;develop&quot;, &quot;DEPLOY_DEV&quot;:&quot;True&quot;}'
          ...
  
  </code></pre>
  <p>and</p>
  <pre><code>name: Trigger Jenkins Build [ Build-Portal ]
  on:
    push:
      branches: [ develop ]
      paths: 'backend/**'
      types: [closed]
  jobs:
    build:
      name: Triggering Jenkins Build [ Build-Portal ]
      runs-on: ubuntu-latest
      if: github.event.pull_request.merged == true
      steps:
      - name: Trigger Build-Portal
        uses: actions/trigger-jenkins@develop
        with:
          ...
          job_name: &quot;Build-Portal&quot;
          job_params: '{&quot;FRESH_BUILD&quot;:&quot;True&quot;, &quot;API&quot;:&quot;True&quot;, &quot;BUILD_BRANCH&quot;:&quot;develop&quot;, &quot;DEPLOY_DEV&quot;:&quot;True&quot;}'
          ...
  </code></pre>
  <p>Can I combine these two in a single workflow file (<code>.github/workflows/</code>) or it need to have separate files for each ?</p>
  <p><strong>Note</strong> : <code>job_params</code> are different in for both triggers.</p>