From 1ac5adb1512f0a784d37c5c18aafe9a7d0b4d0d7 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sat, 9 Nov 2024 02:48:46 +0000 Subject: [PATCH] feat: ensure spud correctly installed and placed on PATH Reviewed-on: https://forge.karnov.club/spadinastan/setup-spud-action/pulls/1 Co-authored-by: Marc Cataford Co-committed-by: Marc Cataford --- README.md | 11 +++++++++++ action.yml | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..af3c5e1 --- /dev/null +++ b/README.md @@ -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)). diff --git a/action.yml b/action.yml index a3c0e02..f76e526 100644 --- a/action.yml +++ b/action.yml @@ -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 }}