====== 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') {{tag>kb git github}}