Skip to content

Commit 7194680

Browse files
authored
md5sum the hash
1 parent 673b187 commit 7194680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ runs:
2121
sudo apt-get update -yq
2222
aptHash(){ echo "$1-$(apt-cache policy "$1" | grep -oP '(?<=Candidate:\s)(.+)')"; }
2323
export -f aptHash
24-
hash=$(echo "${{ inputs.packages }}" | xargs -rI {} bash -c 'aptHash {}' | tr '\n' '-')
25-
echo "packagesHash=${hash%-}" >> $GITHUB_ENV
24+
hash=$(echo "${{ inputs.packages }}" | xargs -rI {} bash -c 'aptHash {}' | tr '\n' '-' | md5sum | cut -f 1 -d ' ')
25+
echo "packagesHash=${hash}" >> $GITHUB_ENV
2626
- name: Cache deb files
2727
uses: actions/cache@v4
2828
with:

0 commit comments

Comments
 (0)