Merge branch 'standalone_develop' into dev_osredm_server

This commit is contained in:
yystopf 2025-09-10 16:51:59 +08:00
commit 0aa0878b50
1 changed files with 1 additions and 1 deletions

View File

@ -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