Skip to content

Simple utility to get the latest release version from GitHub repository

License

Notifications You must be signed in to change notification settings

bash-suite/gh-latest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-latest

License: MIT

Simple utility to get the latest release version from GitHub repository

Usage

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 use a personnal token:

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

About

Simple utility to get the latest release version from GitHub repository

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages