fixed: 流水线启动事件pull_request支持
This commit is contained in:
parent
4fe26099dd
commit
3fcbf74890
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue