setup-java icon indicating copy to clipboard operation
setup-java copied to clipboard

Allow to configure cache scope

Open ale5000-git opened this issue 11 months ago • 1 comments

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.

ale5000-git avatar Jan 19 '25 20:01 ale5000-git

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.

priya-kinthali avatar Jan 20 '25 03:01 priya-kinthali