From 413beaa08a5d861609cfeddd2e7cb081cc6baf31 Mon Sep 17 00:00:00 2001 From: Noah Holm <32292420+noppaz@users.noreply.github.com> Date: Thu, 12 Oct 2023 07:31:18 +0200 Subject: [PATCH] feat: add action input of cache-dependency-path --- actions/setup/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 90910bed..ca89d6d3 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -17,6 +17,11 @@ inputs: required: false default: '1.21' + cache-dependency-path: + description: Path to the go.sum file(s) to use in caching. + required: false + default: go.sum + check-latest: description: If true, checks whether the cached go version is the latest, if not then downloads the latest. Useful when you need to use the latest version. required: false @@ -42,6 +47,7 @@ runs: go-version: ${{ inputs.go-version }} check-latest: ${{ inputs.check-latest }} cache: ${{ inputs.disableCache != 'true' }} + cache-dependency-path: ${{ inputs.cache-dependency-path }} - name: Cache sage folders if: ${{ inputs.disableCache != 'true' }}