Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T20:09:30.000Z (about 5 years ago)
- Last Synced: 2024-02-13T21:55:06.699Z (5 months 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
Lists
- awesome-stars - bash-suite/gh-latest - Simple utility to get the latest release version from GitHub repository (Shell)
README
# ![](https://github.com/docker-suite/artwork/raw/master/logo/png/logo_32.png) gh-latest
![License: MIT](https://img.shields.io/github/license/docker-suite/goss.svg?color=green&style=flat-square)Simple utility to get the **latest release version** from GitHub repository
## ![](https://github.com/docker-suite/artwork/raw/master/various/pin/png/pin_16.png) Usage
```sh
Usage: gh-latest.sh [user repo] [OPTIONS]-u | --user Github user olding the repository
-r | --repo Github repository
-T | --token Github tokenAlternatively, 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
```## ![](https://github.com/docker-suite/artwork/raw/master/various/pin/png/pin_16.png) 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)