User Tools

Site Tools


github-api

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
github-api [2022/07/18 19:25] 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')+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')+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}}+{{tag>kb git github}}
  
github-api.1658165116.txt.gz · Last modified: 2022/07/18 19:25 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki