.github/main.workflow.sh: get latest homebrew-cask (#61053)

This commit is contained in:
Mike McQuaid 2019-03-28 21:17:04 +00:00 committed by GitHub
parent 455a65b713
commit 2a9d2cc28c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -10,11 +10,17 @@ echo 'BUNDLE_SILENCE_ROOT_WARNING: "1"' > ~/.bundle/config
git config --global user.name "BrewTestBot"
git config --global user.email "homebrew-test-bot@lists.sfconservancy.org"
# setup Homebrew/homebrew-cask repository
CASK_DIR="$(brew --repo "$GITHUB_REPOSITORY")"
mkdir -p "$CASK_DIR"
rm -rf "$CASK_DIR"
ln -s "$PWD" "$CASK_DIR"
# get latest Homebrew/homebrew-cask
git -C "$CASK_DIR" fetch
git -C "$CASK_DIR" checkout -f master
git -C "$CASK_DIR" reset --hard origin/master
# setup Homebrew environment
export PATH="$(brew --repo)/Library/Homebrew/vendor/portable-ruby/current/bin:$PATH"