engineerd / configurator

Cross-platform GitHub Action to download, extract, and add to path statically compiled tools
https://radu-matei.com/blog/github-action-cross-plat-configure-tools/
MIT License
26 stars 13 forks source link

Add support for .tgz suffix #22

Closed Raboo closed 3 years ago

Raboo commented 3 years ago

Hi

Some projects uses a ".tgz" file name suffix for gzipped tar archives. Could you possibly add support for .tgz suffix for archive extraction?

Raboo commented 3 years ago

For anyone that needs a work-around. Since the file suffix is read from the URL and not he actual file. This can be used to trick the code.

https://github.com/vmware-tanzu/buildkit-cli-for-kubectl/releases/download/{{version}}/linux-{{version}}.tgz?.tar.gz

i.e. add ?.tar.gz to the end of your url.

radu-matei commented 3 years ago

Implemented in #27