fixed: 流水线启动事件fork

This commit is contained in:
xxq250 2025-02-11 11:40:34 +08:00
parent 5c2639773e
commit 465d5db87e
1 changed files with 16 additions and 0 deletions

View File

@ -33,6 +33,22 @@ on:
- '.gitea/workflows/**'
- '.github/workflows/**'
<% end %>
<%if node.name.to_s.include?("on-fork") && node.input_values.present? %>
fork:
<% node.input_values.each_key do |key| %>
<%=key %>:
<% if node.input_values[key].blank? %>
- '*'
<% else %>
<% node.input_values[key].to_s.split(",").each do |val| %>
- <%=val %>
<% end %>
<% end %>
<% end %>
paths-ignore:
- '.gitea/workflows/**'
- '.github/workflows/**'
<% end %>
<%if node.name.to_s.include?("on-schedule") && node.input_values.present? %>
schedule:
<% node.input_values.each_key do |key| %>