Skip to content

GitHub action to install-and-cache various package tools

License

Notifications You must be signed in to change notification settings

tecolicom/actions-use-any-tools

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions-use-any-tools

actions-use-any-tools

This GitHub action is a quick interface to use other use-*-tools actions. Currently apt, homebrew, perl, python and ruby tools are supported. Common parameters cache and key can be set through this action. If you want to use other parameters, use individual action direct.

Usage

# inputs:
#   apt:      { required: false, type: string }
#   homebrew: { required: false, type: string }
#   perl:     { required: false, type: string }
#   python:   { required: false, type: string }
#   ruby:     { required: false, type: string }
#   cache:    { required: false, type: string, default: yes }
#   key:      { required: false, type: string }

# outputs:
#   apt-cache-hit:      cache status of apt action
#   homebrew-cache-hit: cache status of homebrew action
#   perl-cache-hit:     cache status of perl action
#   python-cache-hit:   cache status of python action
#   ruby-cache-hit:     cache status of ruby action

- uses: tecolicom/actions-use-any-tools@v1
  with:

    # apt tools
    apt: ''

    # homebrew tools
    homebrew: ''

    # perl tools
    perl: ''

    # python tools
    python: ''

    # ruby tools
    ruby: ''

    # Cache strategy
    #
    # yes:      activate cache
    # workflow: effective within same workflow (mainly for test)
    # no:       no cache
    #
    cache: yes

    # Additional cache key
    key: ''

Example

- uses: tecolicom/actions-use-any-tools@v1
  with:
    apt:      bmake
    homebrew: rcs cvs
    perl:     App::ansiecho
    python:   legit
    ruby:     sinatra
- uses: tecolicom/actions-use-any-tools@v1
  with:
    apt: >-
      bmake
    homebrew: >-
      rcs
      cvs
    perl: >-
      App::Greple
      App::optex::textconv
      App::sdif
    python: >-
      legit
    ruby: >-
      sinatra

See Also