Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
4c78bd42e6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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