GET URL LIST OF ALL ASSET OF ALL RELEASE
curl -sL https://api.github.com/repos/OWNER/REPO/releases | grep
tarball_url | cut -d '"' -f 4
GET URL OF THE VERY LAST RELEASE
curl -sL https://api.github.com/repos/OWNER/REPO/releases | grep tarball_url | head -n 1 | cut -d '"' -f 4
DOWNLOAD THE VERY LAST RELEASE
curl -sL https://api.github.com/repos/OWNER/REPO/releases | grep tarball_url | head -n 1 | cut -d '"' -f 4 | xargs curl -L -J -O
Note 1 : do not forget to replace OWNER and REPO
Note 2 : API github https://developer.github.com/v3/repos/releases/
Aucun commentaire:
Enregistrer un commentaire