Skip to content

Instantly share code, notes, and snippets.

@jose-neta
Forked from lukechilds/get_latest_release.sh
Last active December 4, 2018 15:41
Show Gist options
  • Select an option

  • Save jose-neta/8e893bf51362ac0a518d02715211fa1f to your computer and use it in GitHub Desktop.

Select an option

Save jose-neta/8e893bf51362ac0a518d02715211fa1f to your computer and use it in GitHub Desktop.
Shell - Get latest release from GitHub
#!/usr/bin/env bash
# USAGE: ./get_latest_release.sh docker/compose
account_repo=$1 # e.g.: docker/docker-compose
curl -s "https://api.github.com/repos/$account_repo/releases/latest" | jq -r .name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment