mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Fix conditionals.
This commit is contained in:
parent
7a02db3b2e
commit
d3f2f7ce23
14
action.yml
14
action.yml
|
@ -34,12 +34,10 @@ runs:
|
||||||
path: ~/cache-apt-pkgs
|
path: ~/cache-apt-pkgs
|
||||||
key: cache-apt-pkgs_${{ hashFiles('/tmp/package_list.txt') }}
|
key: cache-apt-pkgs_${{ hashFiles('/tmp/package_list.txt') }}
|
||||||
|
|
||||||
- name: Install and Cache Packages
|
- name: Load Packages
|
||||||
if: steps.load-pkg-cache.outputs.cache-hit != 'true'
|
run: |
|
||||||
run: ${{ github.action_path }}/install_and_cache.sh ~/cache-apt-pkgs ${{ inputs.packages }}
|
if [ ${{ steps.load-pkg-cache.outputs.cache-hit }} == "true" ]; then
|
||||||
shell: bash
|
${{ github.action_path }}/install_and_cache.sh ~/cache-apt-pkgs ${{ inputs.packages }}
|
||||||
|
else
|
||||||
- name: Restore Cached Packages
|
${{ github.action_path }}/run.sh ~/cache-apt-pkgs /
|
||||||
if: steps.load-pkg-cache.outputs.cache-hit != 'true'
|
|
||||||
run: ${{ github.action_path }}/run.sh ~/cache-apt-pkgs /
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue