Last active
June 5, 2024 21:08
-
-
Save ArthurHoaro/22a7cda1c446fd7760bbaee41c1932cb to your computer and use it in GitHub Desktop.
Get Github latest release version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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