mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
联调图形设计化-更新文件不转base64
This commit is contained in:
@@ -158,7 +158,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
|
||||
filepath: ".gitea/workflows/#{@pipeline.pipeline_name}.yml",
|
||||
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",
|
||||
committer: {
|
||||
email: current_user.mail,
|
||||
|
||||
Reference in New Issue
Block a user