This Github action execute given command for target, and cache
installd 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.
# inputs:
# command: { required: true, type: string }
# target: { required: true, type: string }
# directory: { required: true, type: string }
# cache: { required: false, type: string, default: yes }
# cache-gen: { required: false, type: string, default: v1 }
# key: { required: false, type: string }
- uses: office-tecoli/actions-install-and-cache@v0
with:
# install command
command: ''
# install target
target: ''
# install directory
# multiple directories can be specified
directory: ''
# Cache strategey
#
# yes: activate cache
# no: no cache
# workflow: effective within same workflow (mainly for test)
#
cache: yes
# Cache generation.
# You can set any string to this parameter and different generation
# number produces different cache key.
#
# Default: v1
cache-gen: v1
# Additional cache key
key: ''- uses: office-tecoli/actions-install-and-cache@v0
with:
command: brew install
target: rcs cvs
directory: /usr/local@actions-use-brew-tools
uses this action as a backend of its work.