setup-java
setup-java copied to clipboard
Allow to configure cache scope
Description: Please allow to configure cache scope, example:
- name: "Setup Java"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"
cache-from: type=gha,scope=global
cache-to: type=gha,mode=max,scope=global
Justification: I have a workflow that run only on tags, without specifying scope the cache is never restored since every tag have a separate cache.
Hello @ale5000-git 👋, Thank you for this feature request. We will investigate it and get back to you as soon as we have some feedback.