class GithubActions::Tasks::List

print the defined Github Actions jobs

Public Instance Methods

run() click to toggle source
# File lib/tasks/github_actions/tasks/list.rb, line 27
def run
  Workflow.read.each do |workflow|
    workflow.jobs.each do |job|
      # print rake commands so users can easily copy&paste into terminal
      puts "rake actions:run[#{job.name}]"
    end
  end
end