mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
构建流水线yaml,保存和更新 log
This commit is contained in:
@@ -18,6 +18,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
|
||||
@pipeline.yaml = pipeline_yaml
|
||||
@pipeline.save!
|
||||
sha = get_pipeline_file_sha(@pipeline.file_name, @pipeline.branch)
|
||||
Rails.logger.info "sha==========#{sha}"
|
||||
tip_exception("#{@pipeline.file_name}已存在") if sha
|
||||
interactor = Gitea::CreateFileInteractor.call(current_user.gitea_token, @owner.login, content_params)
|
||||
tip_exception(interactor.error) unless interactor.success?
|
||||
|
||||
Reference in New Issue
Block a user