Class: Dependabot::GithubActions::FileUpdater

Inherits:
FileUpdaters::Base
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/github_actions/file_updater.rb

Instance Method Summary collapse

Instance Method Details

#updated_dependency_filesObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/dependabot/github_actions/file_updater.rb', line 18

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