Skip to content
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

Feature: githhub download latest #535

Open
chad-betamax opened this issue Dec 14, 2024 · 1 comment
Open

Feature: githhub download latest #535

chad-betamax opened this issue Dec 14, 2024 · 1 comment

Comments

@chad-betamax
Copy link

The documentation for the github installs https://comtrya.dev/binary.html mentions only how to grab a tagged version.

Rather than a discrete numbered version I want to download the latest version of a given binary.

Here was my guess as to how this was done:

  • action: binary.github
    name: bat
    directory: /usr/local/bin
    repository: sharkdp/bat
    version: latest

Running comtrya with debug flags I can see that yields me a URL:
https://api.github.com/repos/sharkdp/bat/releases/tags/latest

When the URL I need/want is:
https://github.com/sharkdp/bat/releases/latest

@martintc
Copy link
Member

This sounds reasonable to me and yea, we should support this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants