联调图形设计化-更新文件不转base64

This commit is contained in:
xxq250 2024-05-31 09:24:39 +08:00
parent cf5b4c1e2d
commit 62de4a0ac8
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
filepath: ".gitea/workflows/#{@pipeline.pipeline_name}.yml", filepath: ".gitea/workflows/#{@pipeline.pipeline_name}.yml",
branch: @pipeline.branch, branch: @pipeline.branch,
new_branch: @pipeline.branch, new_branch: @pipeline.branch,
content: Base64.encode64(@pipeline.yaml).gsub(/\n/, ''), content: opt == "create" ? Base64.encode64(@pipeline.yaml).gsub(/\n/, '') : @pipeline.yaml,
message: "#{opt} pipeline", message: "#{opt} pipeline",
committer: { committer: {
email: current_user.mail, email: current_user.mail,

View File

@ -9,10 +9,10 @@ on:
<% node.input_values.each_key do |key| %> <% node.input_values.each_key do |key| %>
<%=key %>: <%=key %>:
<% if node.input_values[key].blank? %> <% if node.input_values[key].blank? %>
- * - *
<% else %> <% else %>
<% node.input_values[key].to_s.split(",").each do |val| %> <% node.input_values[key].to_s.split(",").each do |val| %>
- <%=val %> - <%=val %>
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>