fixed: 流水线启动事件pull_request支持

This commit is contained in:
xxq250 2025-02-13 16:06:57 +08:00
parent 4fe26099dd
commit 3fcbf74890
1 changed files with 1 additions and 16 deletions

View File

@ -17,23 +17,8 @@ on:
- '.gitea/workflows/**'
- '.github/workflows/**'
<% end %>
<%if node.name.to_s.include?("on-pull_request") && node.input_values.present? %>
<%if node.name.to_s.include?("on-pull_request") %>
pull_request:
types:
- opened
<% 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-fork") %>
fork: