jaxxstorm / action-install-gh-release

GitHub Action to install the Github Release binaries
Apache License 2.0
75 stars 32 forks source link

Support cases with no arch or platform in the artifact name #72

Open t3mi opened 1 year ago

t3mi commented 1 year ago

Please add support for cases when binary was published using custom naming scheme like without platform/architecture. Currently, the action is failing as it can't find the binary:

- uses: jaxxstorm/action-install-gh-release@v1.10.0
  with:
    extension-matching: disable
    rename-to: cli
    repo: <private repo>/cli
    tag: latest
    token: ***

Action log:

Run jaxxstorm/action-install-gh-release@c5ead9a448b4660cf1e7866ee22e4dc56538031a
==> System reported platform: linux
==> Using platform: linux
==> System reported arch: x64
==> Using arch: x64
==> File extension matching disabled
==> Will rename downloaded release to cli
==> Binaries will be located at: /opt/hostedtoolcache/cli/cli/latest/linux-x64
searching for sha256sums.txt.asc with (linux|x86_64|x64|amd64).*(linux|x86_64|x64|amd64).*
searching for cli-alpine with (linux|x86_64|x64|amd64).*(linux|x86_64|x64|amd64).*
searching for cli-linux with (linux|x86_64|x64|amd64).*(linux|x86_64|x64|amd64).*
searching for cli-win.exe with (linux|x86_64|x64|amd64).*(linux|x86_64|x64|amd64).*
Error: Could not find a release for latest. Found: sha256sums.txt.asc,cli-alpine,cli-linux,cli-win.exe
jaxxstorm commented 10 months ago

Please send a pull request with this functionality, and I'll review it