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'