Files
install-go/action.yaml
jake c1d74565a3
All checks were successful
tests / test-gomod (push) Successful in 24s
tests / test-versioninput (push) Successful in 29s
adjusting defaults for version input
2026-05-27 14:51:09 -04:00

29 lines
986 B
YAML

name: "install-go"
description: "simple and fast install for golang and golang commands on linux workflows"
inputs:
arch:
description: "Optional, the linux architecture to use when downloading Go files (default: amd64)"
required: false
default: "amd64"
purge:
description: "Optional, deletes any previously installed go versions (yes|no)"
required: false
default: "no"
commands:
description: "Optional, any commands to be installed with 'go install', must include version"
required: false
default: "."
version:
description: "Optional, the Go version to install if no go.mod file is present"
required: false
runs:
using: composite
steps:
- name: "run script"
run: ${{ github.action_path }}/install.sh
shell: bash
env:
GO_INSTALL_COMMANDS: ${{ inputs.commands }}
GO_INSTALL_ARCH: ${{ inputs.arch }}
GO_INSTALL_PURGE: ${{ inputs.purge }}
GO_INSTALL_VERSION: ${{ inputs.version }}