Selaa lähdekoodia

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 vuotta sitten
vanhempi
sitoutus
4c78bd42e6
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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)'
   log_error 'No Homebrew command found. Please install Homebrew (https://brew.sh)'
   return 2
   return 2
 }
 }
+
+# Temporary GitHub Actions fix
+if (( ${+CI} )) brew unlink git@2.35.1
 brew bundle --file "${SCRIPT_HOME}/.Brewfile"
 brew bundle --file "${SCRIPT_HOME}/.Brewfile"
 rehash
 rehash