Browse Source

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

pull/347/head
xxq250 1 year ago
parent
commit
3fcbf74890
1 changed files with 1 additions and 16 deletions
  1. +1
    -16
      app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb

+ 1
- 16
app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb View File

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


Loading…
Cancel
Save