Skip to content

the same dependency in all workflows / jobs #25805

Answered by Yanjingzhu
kwladyka asked this question in Actions
Discussion options

You must be logged in to vote
  • I want to start each workflow file in the same way. Do I have to create github action from that part in the same repository? No other way?

There is not an actions template conception now, if you want to run a group of same actions in different workflows, you need to add those actions in each workflow file now.

  • I would like to prepare all dependencies in job and later run a few jobs based on the state of the system after finish job1. Is it possible?

 

You can use jobs.<job_id>.needs. Identifies any jobs that must complete successfully before this job will run.

Example: 

For more information, you can refer to https://help.github.com/cn/actions/automating-your-workflow-with-github-actio…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants