Remove refresh feature.

This commit is contained in:
awalsh128 2021-10-21 23:04:42 -07:00
parent db1f7473f6
commit 8f2c275875
3 changed files with 2 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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