How can I make a GitHub Workflow depend on the success of another workflow?

Viewed 17203

I've made a new project on GitHub with two workflows:

  • One to test the project
  • And another to publish the resulting Docker image

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?

0 Answers
Related