Solved! Solved! Go to Solution.
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.
For more information, you can refer to https://help.github.com/cn/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-...
Yes, as jobs are separated, each job runs on different machine, you need to install java for each job.
Not what I wanted to hear, but true :)
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.