dd0b70853bacb10668fefdd5f79e82b9e453b8fc
Some checks failed
Test Action / test (push) Failing after 4s
Setup GitHub Release Action
This GitHub/Gitea Action downloads a tool from a GitHub release based on platform-aware selection rules and adds it to the system PATH.
Usage
Simple (Automatic Selection)
The action will automatically detect your OS and ARCH and look for a matching archive.
- uses: ./
with:
repo-name: 'gohugoio/hugo'
Regex Search
You can use a regex pattern (prefixed with ~) to narrow down the asset.
- uses: ./
with:
repo-name: 'gohugoio/hugo'
file-name: '~hugo_extended'
Custom File Type
- uses: ./
with:
repo-name: 'some/repo'
file-type: 'package' # Matches .deb, .rpm, .pkg
Inputs
repo-name(required): GitHub repository inowner/repoformat.file-name(optional): Literal name or regex pattern (if starts with~) to match the asset.file-type(optional, default:archive): Predefined keywordsarchive,package, or a custom regex extension pattern.token(optional): GitHub token for authentication.
Description
A Github/Gitea Action that downloads a release from a selected repository and uses it as a tool for other action use.
Languages
TypeScript
100%