Ver código fonte

CI: Add workaround to current GHA issues around Homebrew git

GitHub's macOS runners seem to use a specifically pinned `git` version
installed via Homebrew. This breaks the install step of `brew bundle`.
Unlinking the pinned version allows this step to complete successfully.
PatTheMav 3 anos atrás
pai
commit
4c78bd42e6
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      .github/scripts/utils.zsh/check_macos

+ 3 - 0
.github/scripts/utils.zsh/check_macos

@@ -15,5 +15,8 @@ if (( ! ${+commands[brew]} )) {
   log_error 'No Homebrew command found. Please install Homebrew (https://brew.sh)'
   return 2
 }
+
+# Temporary GitHub Actions fix
+if (( ${+CI} )) brew unlink git@2.35.1
 brew bundle --file "${SCRIPT_HOME}/.Brewfile"
 rehash