https://github.com/bash-suite/gh-latest
Simple utility to get the latest release version from GitHub repository
https://github.com/bash-suite/gh-latest
download github release
Last synced: 10 months ago
JSON representation
Simple utility to get the latest release version from GitHub repository
- Host: GitHub
- URL: https://github.com/bash-suite/gh-latest
- Owner: bash-suite
- License: mit
- Created: 2018-02-23T14:21:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T20:09:30.000Z (over 6 years ago)
- Last Synced: 2024-02-13T21:55:06.699Z (almost 2 years ago)
- Topics: download, github, release
- Language: Shell
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
#  gh-latest

Simple utility to get the **latest release version** from GitHub repository
##  Usage
```sh
Usage: gh-latest.sh [user repo] [OPTIONS]
-u | --user Github user olding the repository
-r | --repo Github repository
-T | --token Github token
Alternatively, you can specify the user and the repo in the right order.
Examples:
gh-latest.sh -u bash-suite -r wait-host Get the latest release version of wait-host
gh-latest.sh bash-suite wait-host Get the latest release version of wait-host
```
##  GitHub token
If you don't want to face a [Github rate limit](https://developer.github.com/v3/rate_limit/) use a personnal token:
```sh
export MYTOKEN="13546843257517438573"
./gh-downloader.sh -t $MYTOKEN -u bash-suite -r wait-host -t latest -f wait-host.sh -o /usr/sbin/wait-host
```
Get a GitHub personal token from here: [github.com/settings/tokens](github.com/settings/tokens)