jobs:
<%@job_nodes.each_with_index do |job,index| %>
  job<%=index + 1 %>:
    name: "<%=job.label || job.name %>"
    # 运行环境，这里就是上面定义的多个 os
    runs-on: 'ubuntu-latest'
    <% if index >0 %>
    needs: job<%=index %>
    <% end %>
    steps:
    <%job.sub_nodes.each do |node| %>
      - name: <%=node.label || node.name %>
            <% if node.name !="shell" %>
        uses: <%=node.full_name %>
            <% end %>
            <%if node.input_values.present? %>
        with:
          <% node.input_values.each_key do |key| %>
          <%=key %>: '<%=node.input_values[key] %>'
          <%end %>
        <%end %>
        <%if node.run_values.present? %>
          <% node.run_values.each_key do |key| %>
        <%=key %>: |
          <%=node.run_values[key] %>
          <%end %>
        <%end %>
      <% end %>
<%end %>