This script is using the GitHub CLI with the GraphQL API in order to retrieve releases. The reasons are: - using 'gh release list' does not return all the releases - using the API, directly or via GitHub CLI, is slow, produces a lot of 502 errors, and is harder due to pagination. - using the GraphQL API directly is hard due to pagination. - using a library, such as graphql-python, is sightly harder than using the GitHub CLI (and still requires a GITHUB_TOKEN). Access to the GitHub token is required when using GitHub CLI, hence the update.yml workflow update.
2.6 KiB
2.6 KiB