setup-spud-action/action.yml
Marc Cataford 1ac5adb151 feat: ensure spud correctly installed and placed on PATH
Reviewed-on: #1
Co-authored-by: Marc Cataford <mcat@riseup.net>
Co-committed-by: Marc Cataford <mcat@riseup.net>
2024-11-09 02:48:46 +00:00

17 lines
503 B
YAML

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 }}
run: curl https://forge.karnov.club/spadinastan/spud/raw/branch/main/install.sh | bash
- name: Smoke test
run: which spud