Skip to content

Instantly share code, notes, and snippets.

@KunalSin9h
Created October 5, 2022 18:41
Show Gist options
  • Save KunalSin9h/af958164cc70c86239183383dc4e9a7e to your computer and use it in GitHub Desktop.
Save KunalSin9h/af958164cc70c86239183383dc4e9a7e to your computer and use it in GitHub Desktop.
Bash Script to get the latest release of any repository of any user.
# get latest release from github
LATEST_RELEASE=$(curl -s https://api.github.com/repos/username/repo_name/releases/latest | grep "tag_name" | cut -d '"' -f 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment