Remove refresh feature.
This commit is contained in:
parent
db1f7473f6
commit
8f2c275875
3 changed files with 2 additions and 7 deletions
|
@ -20,7 +20,6 @@ Create a workflow `.yml` file in your repositories `.github/workflows` directory
|
||||||
|
|
||||||
* `packages` - Space delimited list of packages to install.
|
* `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.
|
* `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
|
### Outputs
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@ runs:
|
||||||
~/cache-apt-pkgs \
|
~/cache-apt-pkgs \
|
||||||
/ \
|
/ \
|
||||||
"${{ steps.load-cache.outputs.cache-hit }}" \
|
"${{ steps.load-cache.outputs.cache-hit }}" \
|
||||||
"${{ inputs.refresh }}" \
|
|
||||||
${{ inputs.packages }}
|
${{ inputs.packages }}
|
||||||
echo "::set-output name=package-version-list::$(cat ~/cache-apt-pkgs/manifest.log)"
|
echo "::set-output name=package-version-list::$(cat ~/cache-apt-pkgs/manifest.log)"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -13,15 +13,12 @@ cache_restore_root=$2
|
||||||
# Indicates that the cache was found.
|
# Indicates that the cache was found.
|
||||||
cache_hit=$3
|
cache_hit=$3
|
||||||
|
|
||||||
# Indicates that a refresh of the packages in the cache is required.
|
|
||||||
refresh=$4
|
|
||||||
|
|
||||||
# List of the packages to use.
|
# List of the packages to use.
|
||||||
packages="${@:5}"
|
packages="${@:4}"
|
||||||
|
|
||||||
script_dir=$(dirname $0)
|
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
|
$script_dir/install_and_cache_pkgs.sh ~/cache-apt-pkgs $packages
|
||||||
else
|
else
|
||||||
$script_dir/restore_pkgs.sh ~/cache-apt-pkgs $cache_restore_root
|
$script_dir/restore_pkgs.sh ~/cache-apt-pkgs $cache_restore_root
|
||||||
|
|
Loading…
Reference in a new issue