fixed 调整job.id和依赖id

This commit is contained in:
2024-12-18 10:09:40 +08:00
parent e6688d9214
commit c472871355
3 changed files with 6 additions and 4 deletions
@@ -37,12 +37,12 @@ on:
jobs:
<%@job_nodes.each_with_index do |job,index| %>
job<%=index + 1 %>:
<%=job.node_id %>:
name: "<%=job.label || job.name %>[<%=job.node_id %>]"
# 运行环境,这里就是上面定义的多个 os
runs-on: 'ubuntu-latest'
<% if index >0 %>
needs: job<%=index %>
needs: <%=job.parent_node_id %>
<% end %>
steps:
<%job.sub_nodes.each do |node| %>