Skip to content

Commit

Permalink
Try different approach for preparing the cache glob
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Camata <[email protected]>
  • Loading branch information
douglascamata committed Aug 21, 2023
1 parent 97ca90f commit d6caf77
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ runs:
mkdir -p .github
cd .github
deps="$(brew deps colima | tr '\n' ',' | sed 's/,$//')"
brew_cellar=$(brew --cellar)
deps_glob="$brew_cellar/{$deps}"
echo "CACHE_GLOB=$deps_glob" >> $GITHUB_ENV
deps=""
for dep in "$(brew deps colima)"; do
deps+="$brew_celllar/$dep"$'\n'
done
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
printf "CACHE_GLOB=$EOF" >> $GITHUB_ENV
echo "$deps" >> $GITHUB_ENV
echo "$EOF" >> $GITHUB_ENV
shell: bash
- name: Configure Homebrew cache
id: homebrew-cache
Expand Down

0 comments on commit d6caf77

Please sign in to comment.