Skip to content

Commit

Permalink
ci: update apt caches on deps run
Browse files Browse the repository at this point in the history
  • Loading branch information
marctrem committed Dec 11, 2023
1 parent 3e6148d commit ad22724
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/actions/deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ outputs: {}
runs:
using: composite
steps:
- name: Has apt-get?
shell: bash
run: |
if command -v apt-get > /dev/null 2>&1; then
echo "HAS_APT_GET=1" >> $GITHUB_ENV
else
echo "HAS_APT_GET=0" >> $GITHUB_ENV
fi
- name: apt-get update
shell: bash
run: sudo apt-get update
if: env.HAS_APT_GET == '1'

- id: deps-sh-hash
shell: bash
run: sha256sum '${{ inputs.deps-script-path }}' | awk '{print "HASH=" $1}' >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit ad22724

Please sign in to comment.