Browse Source

新增: filenmae

pull/347/head
yystopf 1 year ago
parent
commit
bbbf4283d4
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/api/v1/projects/actions/actions_controller.rb

+ 1
- 0
app/controllers/api/v1/projects/actions/actions_controller.rb View File

@@ -46,6 +46,7 @@ class Api::V1::Projects::Actions::ActionsController < Api::V1::Projects::Actions
Rails.logger.info("#{file}不能识别流水线类型")
end
@result << {
filename: file,
name: file.to_s.gsub(".yml","").gsub(".yaml","") ,
branch: last_action_run.present? ? last_action_run.ref.gsub("refs/heads/","") : @project.default_branch,
pipeline_type: pipeline_type,


Loading…
Cancel
Save