mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 18:17:15 +00:00
Fix run arg order and abort on any failure.
This commit is contained in:
parent
d354c1417a
commit
d9e6c214de
|
@ -22,5 +22,5 @@ runs:
|
||||||
key: cache-apt-pkgs_${{ inputs.cache_key }}
|
key: cache-apt-pkgs_${{ inputs.cache_key }}
|
||||||
|
|
||||||
- name: Install Packages
|
- name: Install Packages
|
||||||
run: ${{ github.action_path }}/run.sh / ~/cache-apt-pkgs ${{ inputs.packages }}
|
run: ${{ github.action_path }}/run.sh ~/cache-apt-pkgs / ${{ inputs.packages }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
3
run.sh
3
run.sh
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit on any failure.
|
||||||
|
set -e
|
||||||
|
|
||||||
# Directory that holds the cached packages.
|
# Directory that holds the cached packages.
|
||||||
cache_dir=$1
|
cache_dir=$1
|
||||||
# Root directory to untar the cached packages to.
|
# Root directory to untar the cached packages to.
|
||||||
|
|
Loading…
Reference in a new issue