volta-cli / action

GitHub Action to Setup Volta
https://volta.sh
MIT License
93 stars 23 forks source link

Fall back to downloading latest version from volta.sh on rate-limit #111

Closed ZauberNerd closed 2 years ago

ZauberNerd commented 2 years ago

The GitHub.com server returns a 403 or 429 status code in case of rate- limiting. This commit adds a check for those status codes and tries to fetch the latest volta version from https://volta.sh/latest-version instead.

The implementation is somewhat analog to how setup-node is implemented:

Fixes: #108