mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Fix if variable.
This commit is contained in:
parent
847677393b
commit
7a02db3b2e
|
@ -21,6 +21,7 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Validate Packages
|
- name: Validate Packages
|
||||||
run: ${{ github.action_path }}/validate_pkgs.sh ${{ inputs.packages }}
|
run: ${{ github.action_path }}/validate_pkgs.sh ${{ inputs.packages }}
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Create Cache Key
|
- name: Create Cache Key
|
||||||
run: echo ${{ inputs.packages }} | sed 's/[\s,]+/\n/g' | sort > /tmp/package_list.txt
|
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') }}
|
key: cache-apt-pkgs_${{ hashFiles('/tmp/package_list.txt') }}
|
||||||
|
|
||||||
- name: Install and Cache Packages
|
- 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 }}
|
run: ${{ github.action_path }}/install_and_cache.sh ~/cache-apt-pkgs ${{ inputs.packages }}
|
||||||
shell: bash
|
shell: bash
|
||||||
if: steps.cache-primes.outputs.cache-hit != 'true'
|
|
||||||
|
|
||||||
- name: Restore Cached Packages
|
- name: Restore Cached Packages
|
||||||
|
if: steps.load-pkg-cache.outputs.cache-hit != 'true'
|
||||||
run: ${{ github.action_path }}/run.sh ~/cache-apt-pkgs /
|
run: ${{ github.action_path }}/run.sh ~/cache-apt-pkgs /
|
||||||
shell: bash
|
shell: bash
|
||||||
if: steps.cache-primes.outputs.cache-hit != 'true'
|
|
||||||
|
|
Loading…
Reference in a new issue