From 465d5db87e73f035ca36cfb01a15e717bf32146d Mon Sep 17 00:00:00 2001 From: xxq250 Date: Tue, 11 Feb 2025 11:40:34 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E6=B5=81=E6=B0=B4=E7=BA=BF=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E4=BA=8B=E4=BB=B6fork?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projects/pipelines/build_pipeline.yaml.erb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb b/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb index 3887278b4..503f695ce 100644 --- a/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb +++ b/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb @@ -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| %>