Skip to content

Allow to configure cache scope #726

Open
@ale5000-git

Description

@ale5000-git

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions