fixed 图形化流水线增加分支流程-启动节点空处理

This commit is contained in:
2024-12-06 11:36:29 +08:00
parent 131871dabb
commit a5e6594a37
2 changed files with 3 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
name: "<%=@pipeline_name %>"
on:
<%@on_nodes.each do |node| %>
<%if node.name.to_s.include?("on-push") %>
<%if node.name.to_s.include?("on-push") && node.input_values.present? %>
push:
<% node.input_values.each_key do |key| %>
<%=key %>:
@@ -14,7 +14,7 @@ on:
<% end %>
<% end %>
<% end %>
<%if node.name.to_s.include?("on-pull_request") %>
<%if node.name.to_s.include?("on-pull_request") && node.input_values.present? %>
pull_request:
<% node.input_values.each_key do |key| %>
<%=key %>:
@@ -27,7 +27,7 @@ on:
<% end %>
<% end %>
<% end %>
<%if node.name.to_s.include?("on-schedule") %>
<%if node.name.to_s.include?("on-schedule") && node.input_values.present? %>
schedule:
<% node.input_values.each_key do |key| %>
- <%=key %>: "<%=node.input_values[key] %>"