github-api
Table of Contents
Github API
Releases
Get Download Link for latest release of a given repository
url=$(curl -s https://api.github.com/repos/${USER}/${REPOSITORY}/releases/latest \ | jq -r '.assets[0].browser_download_url')
Get Download Link for a tagged release of a given repository
url=$(curl -s https://api.github.com/repos/${USER}/${REPOSITORY}/releases/tags/${RELEASE_TAG} \ | jq -r '.assets[0].browser_download_url')
github-api.txt · Last modified: 2023/10/07 09:26 by baumi