-
-
Save jose-neta/8e893bf51362ac0a518d02715211fa1f to your computer and use it in GitHub Desktop.
Shell - Get latest release from GitHub
This file contains hidden or 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
| #!/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