Class: GithubActions::Tasks::List

Inherits:
Object
  • Object
show all
Defined in:
lib/tasks/github_actions/tasks/list.rb

Overview

print the defined Github Actions jobs

Instance Method Summary collapse

Instance Method Details

#runObject



27
28
29
30
31
32
33
34
# 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