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 673b187 commit 7194680Copy full SHA for 7194680
action.yml
@@ -21,8 +21,8 @@ runs:
21
sudo apt-get update -yq
22
aptHash(){ echo "$1-$(apt-cache policy "$1" | grep -oP '(?<=Candidate:\s)(.+)')"; }
23
export -f aptHash
24
- hash=$(echo "${{ inputs.packages }}" | xargs -rI {} bash -c 'aptHash {}' | tr '\n' '-')
25
- echo "packagesHash=${hash%-}" >> $GITHUB_ENV
+ hash=$(echo "${{ inputs.packages }}" | xargs -rI {} bash -c 'aptHash {}' | tr '\n' '-' | md5sum | cut -f 1 -d ' ')
+ echo "packagesHash=${hash}" >> $GITHUB_ENV
26
- name: Cache deb files
27
uses: actions/cache@v4
28
with:
0 commit comments