Files
setup-github-release/action.yml

33 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: 'The type of the file to be downloaded (archive, package, or custom regex).'
required: false
default: 'archive'
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'