action-install-gh-release icon indicating copy to clipboard operation
action-install-gh-release copied to clipboard

Handle releases nested within single directories

Open orf opened this issue 6 months ago • 0 comments

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?

orf avatar Jul 27 '24 12:07 orf