jaxxstorm / action-install-gh-release

GitHub Action to install the Github Release binaries
Apache License 2.0
67 stars 29 forks source link

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

Open t3mi opened 10 months ago

t3mi commented 10 months 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 8 months ago

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