e1himself / goss-installation-action

Github Action to install goss (and friends: dgoss, dcgoss, kgoss)
MIT License
10 stars 1 forks source link

Support using latest as goss version #19

Closed onedr0p closed 9 months ago

onedr0p commented 1 year ago

Hi 👋🏼

It would be a cool feature to allow setting the version to latest instead of pinning to a specific goss version, goss development is very slow and there shouldnt be any breaking changes. If there are it should be up whomever is using this action to accept that it could break using latest.

Thanks!

e1himself commented 1 year ago

Hey @onedr0p!

Thanks for the suggestion :+1:

Even though this makes total sense, It's not clear to me how to download the latest release binaries from the goss Github page. If there only was support for /latest/ tag instead of specifying the exact version.

I'd be happy to hear any ideas on how to achieve this without overengineering the scripts.

Thanks!

onedr0p commented 1 year ago

You'll probably have to add some logic to query for the latest version and use that instead of the user provided or default one when using latest

Here's a gist which have a ton of different takes on this.

https://gist.github.com/steinwaywhw/a4cd19cda655b8249d908261a62687f8

onedr0p commented 9 months ago

Thanks!

e1himself commented 9 months ago

Hey @onedr0p!

The action now supports latest as the version specifier (and does so by default).

As long as you have been using e1himself/goss-installation-action@v1, you don't have to change anything to get the latest action in your workflow.

Please check if it works to confirm it's all good.

Thanks! :raised_hands: