the same dependency in all workflows / jobs #25805
-
Do I have to install the same java version for each job separately? And more dependencies. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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.
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-actions/workflow-syntax-for-github-actions#jobsjob_idneeds
Yes, as jobs are separated, each job runs on different machine, you need to install java for each job. |
Beta Was this translation helpful? Give feedback.
-
Not what I wanted to hear, but true :slight_smile: As workaround probably the best way is to create action in the same repository which preapre all dependencies for all workflows and jobs in the same way. Or just use 1 long job. |
Beta Was this translation helpful? Give feedback.
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.
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…