actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.49k stars 1.2k forks source link

Add advanced use cases to examples section #1222

Open dsame opened 1 year ago

dsame commented 1 year ago

Description

The PR add the following use case to example sections:

##  Common use cases

### Restore-only caches
### Automatically detect cached paths

Motivation and Context

During the maintaining actions/setup-go we received feedback from users about real world use cases and requests to extend the functionality of the built-in caching.

It is not desirable to bloat the setup action with the caching features, the users should be redirected to actions/cache instead with a good explanation of how to achieve the requested functionality.

Related isues: https://github.com/actions/setup-go/issues/316 https://github.com/actions/setup-go/issues/395

Checklist: