Skip to content

tecolicom/actions-install-and-cache

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

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions-install-and-cache

actions-install-and-cache

This GitHub action execute given script, and cache installed files for later use. When executed next time with same package list, and any other environment are not changed, updated files are extracted from the cached archive.

This action uses actions/cache and produce different cache key for different operating system environment. If you need to use different cache for other reason, provide a key by parameter.

Output is same as @actions/cache.

Usage

# inputs:
#   run:     { required: true,  type: string }
#   path:    { required: true,  type: string }
#   cache:   { required: false, type: string, default: yes }
#   key:     { required: false, type: string }
#   sudo:    { required: false, type: string }
#   verbose: { required: false, type: string, default: false }

- uses: tecolicom/actions-install-and-cache@v1
  with:

    # install script
    run: ''

    # install path
    # multiple directories can be specified
    path: ''

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

    # Additional cache key
    key: ''

    # sudo: run install script as root
    sudo: false

    # verbose: show verbose output
    verbose: false

Example

- uses: tecolicom/actions-install-and-cache@v1
  with:
    run:  brew install rcs cvs
    path: /usr/local

See Also

@actions-use-homebrew-tools uses this action as a backend of its work.