From 7a02db3b2efaa61b563c8d0c4abc81a8a0b74330 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sat, 16 Oct 2021 10:54:31 -0700 Subject: [PATCH] Fix if variable. --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 6a6cefa..1675e0c 100644 --- a/action.yml +++ b/action.yml @@ -21,6 +21,7 @@ runs: steps: - name: Validate Packages run: ${{ github.action_path }}/validate_pkgs.sh ${{ inputs.packages }} + shell: bash - name: Create Cache Key run: echo ${{ inputs.packages }} | sed 's/[\s,]+/\n/g' | sort > /tmp/package_list.txt @@ -34,11 +35,11 @@ runs: key: cache-apt-pkgs_${{ hashFiles('/tmp/package_list.txt') }} - name: Install and Cache Packages + if: steps.load-pkg-cache.outputs.cache-hit != 'true' run: ${{ github.action_path }}/install_and_cache.sh ~/cache-apt-pkgs ${{ inputs.packages }} shell: bash - if: steps.cache-primes.outputs.cache-hit != 'true' - name: Restore Cached Packages + if: steps.load-pkg-cache.outputs.cache-hit != 'true' run: ${{ github.action_path }}/run.sh ~/cache-apt-pkgs / shell: bash - if: steps.cache-primes.outputs.cache-hit != 'true'