Files
setup-github-release/action.yml
Slawomir Koszewski 2928ae62d3
Some checks failed
Test Action / test (push) Has been cancelled
Update: Added function that find binary.
2026-01-11 01:32:12 +01:00

29 lines
1.0 KiB
YAML

name: 'setup-github-release'
description: 'Install a tool from a GitHub release and add it to the PATH'
author: 'Slawomir Koszewski with GitHub Copilot assistance'
inputs:
repo-name:
description: 'The GitHub repository name (e.g., owner/repo)'
required: true
file-name:
description: 'The name or regex pattern (prefixed with ~) of the asset file to download.'
required: false
binary-name:
description: 'The name or regex pattern (prefixed with ~) of the binary to search for within the asset. Defaults to the repository name.'
required: false
file-type:
description: 'The type of the file to be downloaded (archive, package, or custom regex).'
required: false
default: 'archive'
debug:
description: 'When set to true, displays the contents of the unpacked archive or directory.'
required: false
default: 'false'
token:
description: 'The GitHub token to use for authentication'
required: false
default: ${{ github.token }}
runs:
using: 'node24'
main: 'dist/index.js'