mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
构建流水线yaml, base64
This commit is contained in:
@@ -153,7 +153,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: @pipeline.yaml,
|
content: Base64.encode64(@pipeline.yaml).gsub(/\n/, ''),
|
||||||
message: "#{opt} pipeline",
|
message: "#{opt} pipeline",
|
||||||
committer: {
|
committer: {
|
||||||
email: current_user.mail,
|
email: current_user.mail,
|
||||||
|
|||||||
Reference in New Issue
Block a user