Update output to emit false.

This commit is contained in:
awalsh128 2021-10-16 13:10:59 -07:00
parent 91e3a98133
commit dcae10197c

View file

@ -18,7 +18,7 @@ inputs:
outputs: outputs:
cache-hit: cache-hit:
description: 'A boolean value to indicate a cache was found for the packages requested.' description: 'A boolean value to indicate a cache was found for the packages requested.'
value: ${{ steps.load-pkg-cache.outputs.cache-hit }} value: ${{ steps.load-cache.outputs.cache-hit || "false" }}
runs: runs:
using: "composite" using: "composite"
@ -32,7 +32,7 @@ runs:
shell: bash shell: bash
- name: Load Package Cache - name: Load Package Cache
id: load-pkg-cache id: load-cache
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/cache-apt-pkgs path: ~/cache-apt-pkgs
@ -40,7 +40,7 @@ runs:
- name: Load Packages - name: Load Packages
run: | run: |
if [ ${{ steps.load-pkg-cache.outputs.cache-hit }} ]; then if [ ${{ steps.load-cache.outputs.cache-hit }} ]; then
${{ github.action_path }}/restore_pkgs.sh ~/cache-apt-pkgs / ${{ github.action_path }}/restore_pkgs.sh ~/cache-apt-pkgs /
else else
${{ github.action_path }}/install_and_cache_pkgs.sh ~/cache-apt-pkgs ${{ inputs.packages }} ${{ github.action_path }}/install_and_cache_pkgs.sh ~/cache-apt-pkgs ${{ inputs.packages }}