Skip to content

Skip cache save feature #497

Open
Open
@kian99

Description

Description:
I'd like to propose a new input to the action to enable skipping cache saves but maintaining the ability to restore an existing cache.
Something like skip-cache-save.

Justification:
We have the case in our CI/CD where we have the following jobs running in parallel:

  1. Run tests - i.e. runs go test ./...
  2. Run linting - i.e. run golangci-lint

Both jobs benefit from Go package caching but in the above scenario, the linting job finishes first and creates a cache that doesn't contain Go test artefacts. It would be useful to only have 1 job create the cache i.e. the job that populates the package cache and the test/build cache.

I imagine this can be handled by using actions/cache, but this addition feels like a simple way of achieving better cache control without dropping to a lower level tool.

Are you willing to submit a PR?
Possibly, if the feature request is relevant.

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