feat: setup spud and add to path

This commit is contained in:
Marc 2024-11-06 19:21:45 -05:00
parent 103276ddd7
commit 00897d9e6c
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 16 additions and 1 deletions

11
README.md Normal file
View file

@ -0,0 +1,11 @@
# Setup Spud Action
## Interface
```yaml
inputs:
version:
description: "Spud version to install."
```
If the `version` input is not provided, the latest version will be installed (see [spadinastan/spud](https://forge.karnov.club/spadinastan/spud)).

View file

@ -1,10 +1,14 @@
name: Setup Spud
name: Setup Spud Tooling
inputs:
version:
description: "Spud version to install."
runs:
using: composite
steps:
- name: Ensure install directory exists and is on PATH
run: |
mkdir -p $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Pull pre-built binary
env:
SPUD_VERSION: ${{ inputs.version }}