diff --git a/.github/actions/setup-environment-action/action.yml b/.github/actions/setup-environment-action/action.yml index b26d47fcc124..f5afcb6e75c8 100644 --- a/.github/actions/setup-environment-action/action.yml +++ b/.github/actions/setup-environment-action/action.yml @@ -32,7 +32,7 @@ inputs: default: '' disable-cache: required: false - description: 'Whether to disable the gradle cache' + description: 'Whether to disable the Gradle and Go caches' default: false python-cache: required: false @@ -104,4 +104,5 @@ runs: uses: actions/setup-go@v6 with: go-version: ${{ inputs.go-version == 'default' && '1.26' || inputs.go-version }} # never set patch, to get latest patch releases. - cache-dependency-path: $${{ inputs.disable-cache && '' || 'sdks/go.sum' }} + cache: ${{ inputs.disable-cache != 'true' }} + cache-dependency-path: sdks/go.sum