Sha256: 1f91998846770a31541f501f69303907a2c06d3264ced7f029fafb3eccf3f0d1

Contents?: true

Size: 1.36 KB

Versions: 12

Compression:

Stored size: 1.36 KB

Contents

# frozen_string_literal: true

#--
# Yast rake
#
# Copyright (C) 2021 SUSE LLC
#   This library is free software; you can redistribute it and/or modify
# it only under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
#   This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
#   You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#++

require_relative "github_actions/tasks"

# tasks related to GitHub Actions (https://docs.github.com/en/actions)
namespace :actions do
  desc "List the GitHub Action jobs"
  task :list do
    GithubActions::Tasks::List.new.run
  end

  desc "Display GitHub Action job details"
  task :details do
    GithubActions::Tasks::Details.new.run
  end

  desc "Run locally the specified GitHub Action job (all jobs if \"job\" is empty)"
  task :run, [:job] do |_task, args|
    name = args[:job]
    if name.nil? || name.empty?
      GithubActions::Tasks::RunAll.new.run
    else
      GithubActions::Tasks::Run.new(name).run
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
yast-rake-0.2.51 lib/tasks/actions.rake
yast-rake-0.2.50 lib/tasks/actions.rake
yast-rake-0.2.49 lib/tasks/actions.rake
yast-rake-0.2.48 lib/tasks/actions.rake
yast-rake-0.2.47 lib/tasks/actions.rake
yast-rake-0.2.46 lib/tasks/actions.rake
yast-rake-0.2.45 lib/tasks/actions.rake
yast-rake-0.2.44 lib/tasks/actions.rake
yast-rake-0.2.43 lib/tasks/actions.rake
yast-rake-0.2.42 lib/tasks/actions.rake
yast-rake-0.2.41 lib/tasks/actions.rake
yast-rake-0.2.40 lib/tasks/actions.rake