🔥 Remove subdirs to get ready for symlink

This commit is contained in:
Ben Chatelain 2024-10-13 10:29:37 -06:00
parent 7603c30da0
commit cb6f17dbd9
No known key found for this signature in database

View file

@ -151,12 +151,15 @@ jobs:
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
# The mas-cli/homebrew-tap repo needs to be checked out using the current
# GitHub credentials in order to open a PR. However, the `brew tap` command
# must be run for Homebrew to see the dir as a tap.
# This is necessary to avoid the following error:
# Error: No available formula or cask with the name "mas-cli/tap/mas".
- name: 🚰 Checkout mas tap
run: |
brew tap mas-cli/tap
rm -rf /opt/homebrew/Library/Taps/mas-cli/homebrew-tap
rm -rf /opt/homebrew/Library/Taps
ln -s /opt/homebrew/Library/Taps Taps
# Checkout with a token for write access