forked from Trustie/forgeplus
修复:更新流水线文件名处理
This commit is contained in:
parent
9942974c42
commit
e89a93e8ca
|
|
@ -80,7 +80,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
|
|||
if @pipeline.yaml.present?
|
||||
sha = get_pipeline_file_sha(@pipeline.file_name, @pipeline.branch)
|
||||
if sha.present?
|
||||
interactor = Gitea::UpdateFileInteractor.call(current_user.gitea_token, @owner.login, content_params("update", params[:pipeline_name]).merge(sha: sha, from_path: "#{@pipeline.pipeline_name}"))
|
||||
interactor = Gitea::UpdateFileInteractor.call(current_user.gitea_token, @owner.login, content_params("update", params[:pipeline_name]).merge(sha: sha, from_path: ".gitea/workflows/#{@pipeline.pipeline_name}.yml"))
|
||||
tip_exception(interactor.error) unless interactor.success?
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue