fixed job顺序执行

This commit is contained in:
xxq250 2024-12-10 10:31:12 +08:00
parent 2792c172d5
commit e5c030270b
1 changed files with 4 additions and 1 deletions

View File

@ -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 %>]"