mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 10:45:29 +00:00
Remove refresh feature.
This commit is contained in:
parent
db1f7473f6
commit
8f2c275875
|
@ -20,7 +20,6 @@ Create a workflow `.yml` file in your repositories `.github/workflows` directory
|
|||
|
||||
* `packages` - Space delimited list of packages to install.
|
||||
* `version` - Version of cache to load. Each version will have its own cache. Note, all characters except spaces are allowed.
|
||||
* `refresh` - Refresh / upgrade the packages in the same cache.
|
||||
|
||||
### Outputs
|
||||
|
||||
|
|
|
@ -53,7 +53,6 @@ runs:
|
|||
~/cache-apt-pkgs \
|
||||
/ \
|
||||
"${{ steps.load-cache.outputs.cache-hit }}" \
|
||||
"${{ inputs.refresh }}" \
|
||||
${{ inputs.packages }}
|
||||
echo "::set-output name=package-version-list::$(cat ~/cache-apt-pkgs/manifest.log)"
|
||||
shell: bash
|
||||
|
|
|
@ -13,15 +13,12 @@ cache_restore_root=$2
|
|||
# Indicates that the cache was found.
|
||||
cache_hit=$3
|
||||
|
||||
# Indicates that a refresh of the packages in the cache is required.
|
||||
refresh=$4
|
||||
|
||||
# List of the packages to use.
|
||||
packages="${@:5}"
|
||||
packages="${@:4}"
|
||||
|
||||
script_dir=$(dirname $0)
|
||||
|
||||
if [ "$cache_hit" == false ] || [ "$refresh" == true ]; then
|
||||
if [ "$cache_hit" == false ]; then
|
||||
$script_dir/install_and_cache_pkgs.sh ~/cache-apt-pkgs $packages
|
||||
else
|
||||
$script_dir/restore_pkgs.sh ~/cache-apt-pkgs $cache_restore_root
|
||||
|
|
Loading…
Reference in a new issue