We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbc42fb commit 673b187Copy full SHA for 673b187
action.yml
@@ -20,7 +20,9 @@ runs:
20
run: |
21
sudo apt-get update -yq
22
aptHash(){ echo "$1-$(apt-cache policy "$1" | grep -oP '(?<=Candidate:\s)(.+)')"; }
23
- echo "packagesHash=$(echo "${{ inputs.packages }}" | xargs -rn1 | tr '\n' '-' | md5sum | cut -f 1 -d ' ')" >> $GITHUB_ENV
+ export -f aptHash
24
+ hash=$(echo "${{ inputs.packages }}" | xargs -rI {} bash -c 'aptHash {}' | tr '\n' '-')
25
+ echo "packagesHash=${hash%-}" >> $GITHUB_ENV
26
- name: Cache deb files
27
uses: actions/cache@v4
28
with:
0 commit comments