Skip to content

Commit

Permalink
Fix sink-cache script where ENTRIES wasn't splitted by newline
Browse files Browse the repository at this point in the history
Also fix how we retrieve the version of the extension
`actions/cache`
  • Loading branch information
FirelightFlagboy committed Dec 15, 2023
1 parent 572c036 commit c3df5bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/sink-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ -z "$GH_EXT_ACTIONS_CACHE" ]; then
echo "gh extension install actions/gh-actions-cache"
exit 1
fi
GH_EXT_ACTIONS_CACHE_VERSION=$(echo "$GH_EXT_ACTIONS_CACHE" | cut -f4 -d ' ')
GH_EXT_ACTIONS_CACHE_VERSION=$(echo "$GH_EXT_ACTIONS_CACHE" | tr '\t' ' ' | cut -f4 -d ' ')

echo "Using actions/gh-actions-cache at $GH_EXT_ACTIONS_CACHE_VERSION"

Expand All @@ -40,7 +40,7 @@ else
(
# We change IFS to split each entries by newline
IFS=$'\n';
for entry in "$ENTRIES"; do
for entry in $ENTRIES; do
remove_cache_entry "$entry" &
done
wait
Expand Down

0 comments on commit c3df5bf

Please sign in to comment.