actions-setup/action.yml
Alex Couture-Beil c406dd71d6
filter out prerelease versions (#17)
Introduces a new prerelease input, which defaults to "false";
prereleased versions will only ever be installed when set to "true".

Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2023-01-19 10:31:23 -08:00

24 lines
609 B
YAML

name: Setup earthly
description: Installs the Earthly binary
branding:
icon: "sunrise"
color: "green"
author: Earthly technologies
inputs:
version:
description: "version of earthly to use."
default: "latest"
prerelease:
description: "allow prerelease versions"
default: "false"
use-cache:
description: "whether to use the cache to store earthly or not"
default: "true"
github-token:
description: "GitHub token for fetching Earthly version list."
runs:
using: node16
main: dist/setup/index.js
post: "dist/cache-save/index.js"
post-if: inputs.use-cache == 'true'