class Bard::CI::GithubActions::Job

Public Instance Methods

id() click to toggle source
# File lib/bard/ci/github_actions.rb, line 156
def id
  json["id"]
end
logs() click to toggle source
# File lib/bard/ci/github_actions.rb, line 165
def logs
  @logs ||= api.download_logs_by_job_id(id)
end
time_elapsed() click to toggle source
# File lib/bard/ci/github_actions.rb, line 160
def time_elapsed
  Time.parse(json["completed_at"]).to_i -
    Time.parse(json["started_at"]).to_i
end