Skip to content

Instantly share code, notes, and snippets.

@ArthurHoaro
Last active November 10, 2020 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArthurHoaro/22a7cda1c446fd7760bbaee41c1932cb to your computer and use it in GitHub Desktop.
Save ArthurHoaro/22a7cda1c446fd7760bbaee41c1932cb to your computer and use it in GitHub Desktop.
Get Github latest release version
#!/bin/bash
if [[ $# != 1 ]]; then
echo "Usage: github_latest \"<repo author>/<repo name\""
exit 1
fi
curl -s "https://api.github.com/repos/$1/releases/latest" | jq -r '.tag_name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment