mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-16 23:18:56 +08:00
fixed 调整job.id和依赖id
This commit is contained in:
@@ -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| %>
|
||||
|
||||
Reference in New Issue
Block a user