Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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