Created basic action logic.

This commit is contained in:
2026-01-10 22:51:27 +01:00
parent e7d0039424
commit 0d0a0e5b84
6 changed files with 582 additions and 50 deletions

View File

@@ -1,19 +1,13 @@
# Setup Tool Action
# Setup GitHub Release Action
This GitHub/Gitea Action downloads a tool from a specified URL and adds it to the system PATH.
This GitHub/Gitea Action downloads a release from a specified GitHub repository and adds it to the runners tool cache.
## Usage
```yaml
- uses: ./
with:
tool-url: 'https://example.com/tool.tar.gz'
tool-name: 'mytool'
version: '1.0.0'
repo-name: 'owner/repo'
file-name: 'tool-linux.*'
use-regex: 'true'
```
## Developing
1. Install dependencies: `npm install`
2. Build the action: `npm run build`
3. Test locally: (add tests if needed)