Class: GithubActions::Tasks::Details
- Inherits:
-
Object
- Object
- GithubActions::Tasks::Details
- Includes:
- Colorizer
- Defined in:
- lib/tasks/github_actions/tasks/details.rb
Overview
print the defined Github Actions jobs with details
Instance Method Summary collapse
Methods included from Colorizer
#error, #info, #stage, #success, #warning
Instance Method Details
#run ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/tasks/github_actions/tasks/details.rb', line 29 def run Workflow.read.each_with_index do |workflow, index| workflow.jobs.each do |job| # empty line separator if multiple jobs are found puts if index > 0 # print the job details success(job.name) puts " run: \"rake actions:run[#{job.name}]\"" puts " container: #{job.container}" puts " steps:" job.steps.each do |step| puts " #{step.name}" puts " #{step.run}" if step.run puts " #{step.uses}" if step.uses end end end end |