[macOS] Allow using GitHub PAT to enlarge api requests limit (#4917)

* Use gh api pat

* Add gh token to 10.15

* Add github_api_pat for macos-12
This commit is contained in:
Mikhail Timofeev
2022-01-20 13:41:21 +03:00
committed by GitHub
parent 73ef0e730c
commit cdd8150e00
8 changed files with 28 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
###########################################################################
source ~/utils/utils.sh
VERSION=$(curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r '.tag_name')
VERSION=$(curl -H "Authorization: token $API_PAT" -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r '.tag_name')
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$VERSION/install.sh | bash
if [ $? -eq 0 ]; then