title: Dependencies Between Workflows on Github Actions
body: <p>I have a monorepo with two workflows:</p>
  <p><code>.github/workflows/test.yml</code></p>
  <pre><code>name: test
  
  on: [push, pull_request]
  
  jobs:
    test-packages:
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v1
        - name: test packages
          run: |
            yarn install
            yarn test
  ...
  </code></pre>
  <p><code>.github/workflows/deploy.yml</code></p>
  <pre><code>name: deploy
  
  on:
    push:
      tags:
        - &quot;*&quot;
  
  jobs:
    deploy-packages:
      runs-on: ubuntu-latest
      needs: test-packages
      steps:
        - uses: actions/checkout@v1
        - name: deploy packages
          run: |
            yarn deploy
          env:
            NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
  ...
  </code></pre>
  <p>This doesn't work, I can't reference a job in another workflow:</p>
  <pre><code>### ERRORED 19:13:07Z
  
  - Your workflow file was invalid: The pipeline is not valid. The pipeline must contain at least one job with no dependencies.
  </code></pre>
  <p><strong>Is there a way to create a dependency between workflows?</strong></p>
  <p>What I want is to run <code>test.yml</code> then <code>deploy.yml</code> on tags, and <code>test.yml</code> only on push and pull requests. I don't want to duplicate jobs between workflows.</p>