make cache usage optional (#13)

This commit is contained in:
Gaëtan Lehmann 2023-01-19 17:54:38 +01:00 committed by GitHub
parent 6cb8b71086
commit 4ebeff879c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,11 @@ inputs:
version:
description: "version of earthly to use."
default: "latest"
use-cache:
description: "whether to use the cache to store earthly or not"
default: "true"
runs:
using: node16
main: dist/setup/index.js
post: "dist/cache-save/index.js"
post-if: inputs.use-cache == 'true'