mirror of
https://github.com/actions/runner-images.git
synced 2025-12-27 20:25:26 +08:00
[macOS] Fix the issue with brew install (#2354)
* Update azure-cli installation * Update curl installation * Update git-lfs installation * Add utils * Update gnupg installation * Add brew_install function * Revert jq installation * Add condition for the aws-sam-cli * Add return to function, revert aws-sam-cli changes, rename brew_install function * Fix typo Co-authored-by: MaksimZhukov <v-mazhuk@microsoft.com>
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
source ~/utils/invoke-tests.sh
|
||||
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo Installing Git...
|
||||
brew install git
|
||||
brew_smart_install "git"
|
||||
|
||||
echo Installing Git LFS
|
||||
brew install git-lfs
|
||||
brew_smart_install "git-lfs"
|
||||
|
||||
# Update global git config
|
||||
git lfs install
|
||||
# Update system git config
|
||||
sudo git lfs install --system
|
||||
|
||||
echo Installing Hub
|
||||
brew install hub
|
||||
brew_smart_install "hub"
|
||||
|
||||
echo Disable all the Git help messages...
|
||||
git config --global advice.pushUpdateRejected false
|
||||
|
||||
Reference in New Issue
Block a user