Fix if variable.
This commit is contained in:
parent
847677393b
commit
7a02db3b2e
1 changed files with 3 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue