-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download Latest Release #74
Comments
Hi @markfaine. You'd probably have to use GitHub API or maybe just simply list git tags on the repo and forge the filename you want to download based on the latest tag. What's your use case? I'm curious |
Ansible role for setting up my development environment. Nothing too important :) I was trying to use 'latest' as the default but also allow setting a variable for a specific version. It seems like such an obvious need, I'm surprised github doesn't already have a way to do it. |
For reference, it doesn't seen like that is something one can do without some script-fu or additional tools. |
Closing as wontfix since github doesn't support that at the moment. |
fyi see #104 |
Thanks @arl This works: repo="https://api.github.com/repos/arl/gitmux/releases/latest"
wget -q -O - "$repo" \
| jq -r '.assets[] | select(.name | contains("linux_amd64")).browser_download_url' You can also replace "linux_amd64" with whatever architecture or use a variable. |
Can you add a latest tag or symlink it in some way? The use case is downloading the newest version from CLI without knowing the version number of the latest version. There may already be a way to do this but I can't figure it out if there is.
Thank you
The text was updated successfully, but these errors were encountered: