title: How can I make a GitHub Workflow depend on the success of another workflow?
body: <p>I've made a new project on GitHub with two workflows:</p>
  
  <ul>
  <li><a href="https://github.com/pgxn/docker-pgxn-tools/blob/main/.github/workflows/ci.yml" rel="noreferrer">One</a> to test the project</li>
  <li>And <a href="https://github.com/pgxn/docker-pgxn-tools/blob/main/.github/workflows/publish.yml" rel="noreferrer">another</a> to publish the resulting Docker image</li>
  </ul>
  
  <p>I'd like the second workflow to trigger only if the first one succeeds. Is there a way to do that? Or would I need to create a single workflow file where the second job depends on the first?</p>