fixed 节点增加属性,节点名称带上id

This commit is contained in:
xxq250 2024-12-10 09:36:58 +08:00
parent 28f3395b05
commit 848afa3ec4
1 changed files with 2 additions and 2 deletions

View File

@ -38,12 +38,12 @@ on:
jobs: jobs:
<%@job_nodes.each_with_index do |job,index| %> <%@job_nodes.each_with_index do |job,index| %>
job<%=index %>: job<%=index %>:
name: "<%=job.label || job.name %>" name: "<%=job.label || job.name %>[<%=job.node_id %>]"
# 运行环境,这里就是上面定义的多个 os # 运行环境,这里就是上面定义的多个 os
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
<%job.sub_nodes.each do |node| %> <%job.sub_nodes.each do |node| %>
- name: <%=node.label || node.name %> - name: "<%=node.label || node.name %>[<%=job.node_id %>]"
<% if node.name !="shell" %> <% if node.name !="shell" %>
uses: <%=node.full_name %> uses: <%=node.full_name %>
<% end %> <% end %>