Class: Dependabot::GithubActions::FileUpdater

Inherits:
FileUpdaters::Base
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/github_actions/file_updater.rb,
lib/dependabot/github_actions/file_updater/workflow_updater.rb,
lib/dependabot/github_actions/file_updater/workflow_updater/source_updater.rb,
lib/dependabot/github_actions/file_updater/workflow_updater/version_commenter.rb,
lib/dependabot/github_actions/file_updater/workflow_updater/yaml_comment_finder.rb,
lib/dependabot/github_actions/file_updater/workflow_updater/flow_sequence_comments.rb,
lib/dependabot/github_actions/file_updater/workflow_updater/source_comment_locator.rb,
lib/dependabot/github_actions/file_updater/workflow_updater/source_comment_updater.rb

Defined Under Namespace

Classes: WorkflowUpdater

Instance Method Summary collapse

Instance Method Details

#updated_dependency_filesObject



21
22
23
24
25
26
27
28
29
30
# File 'lib/dependabot/github_actions/file_updater.rb', line 21

def updated_dependency_files
  updated_files = changed_workflow_files.map do |file|
    updated_file(file: file, content: updated_workflow_file_content(file))
  end
  updated_files.concat(relocked_files(updated_files))
  updated_files.reject! { |f| dependency_files.include?(f) }
  raise "No files changed!" if updated_files.none?

  updated_files
end