action-install-gh-release
action-install-gh-release copied to clipboard
Handle releases nested within single directories
Hey, thank you for this awesome action ❤️.
I was trying to use it with Hyperfine:
- name: install hyperfine
uses: jaxxstorm/action-install-gh-release@v1
with:
repo: sharkdp/hyperfine
However this fails, because the extracted release file contains a single directory called hyperfine-v1.18.0-x86_64-unknown-linux-gnu/
As a workaround, you can do:
- name: install hyperfine
uses: jaxxstorm/action-install-gh-release@v1
with:
repo: sharkdp/hyperfine
tag: v1.18.0
binaries-location: hyperfine-v1.18.0-x86_64-unknown-linux-gnu
However this isn't ideal. It would be awesome if the action could detect if the release file has a single extracted directory, and use that to find the binaries automatically?