Files
setup-github-release/action.yml

32 lines
1.2 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:
repository:
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: 'Asset type selector. Known values: archive, package, linux, macos, targz. Custom values: ~<regex> or extension (e.g. zip, .tar.gz).'
required: false
update-cache:
description: 'How to handle the tool cache (false, true, or always). Defaults to false.'
required: false
default: 'false'
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'