fixed job顺序执行
This commit is contained in:
parent
2792c172d5
commit
e5c030270b
|
@ -37,10 +37,13 @@ on:
|
|||
|
||||
jobs:
|
||||
<%@job_nodes.each_with_index do |job,index| %>
|
||||
job<%=index %>:
|
||||
job<%=index + 1 %>:
|
||||
name: "<%=job.label || job.name %>[<%=job.node_id %>]"
|
||||
# 运行环境,这里就是上面定义的多个 os
|
||||
runs-on: 'ubuntu-latest'
|
||||
<% if index >0 %>
|
||||
needs: job<%=index %>
|
||||
<% end %>
|
||||
steps:
|
||||
<%job.sub_nodes.each do |node| %>
|
||||
- name: "<%=node.label || node.name %>[<%=node.node_id %>]"
|
||||
|
|
Loading…
Reference in New Issue