github-api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
github-api [2022/07/18 19:17] – created baumigithub-api [2023/10/07 09:26] (current) – [Get Download Link for a tagged release of a given repository] baumi
Line 5: Line 5:
 ==== Get Download Link for latest release of a given repository ==== ==== Get Download Link for latest release of a given repository ====
 <code> <code>
 +url=$(curl -s https://api.github.com/repos/${USER}/${REPOSITORY}/releases/latest \
 +    | jq -r '.assets[0].browser_download_url')
 </code> </code>
  
 ==== Get Download Link for a tagged release of a given repository ==== ==== Get Download Link for a tagged release of a given repository ====
 <code> <code>
 +url=$(curl -s https://api.github.com/repos/${USER}/${REPOSITORY}/releases/tags/${RELEASE_TAG} \
 +   | jq -r '.assets[0].browser_download_url')
 </code> </code>
  
 +{{tag>kb git github}}
  
github-api.1658164671.txt.gz · Last modified: 2022/07/18 19:17 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki