@ -99,6 +99,42 @@ The [GitHub Context](https://docs.github.com/en/actions/learn-github-actions/con
## Restoring Cache
## Restoring Cache
### Know paths better
While setting paths for caching dependencies it is important to give correct path depending on the image you are using and if you are running the action inside or outside the container. Below are some paths one should keep in mind while writing their workflow files.
cwd() = Current working directory where code executes by default.
RUNNER_TEMP = Environment variable defined for temporary storage location.
### Make cache read only / Reuse cache from centralized job
### Make cache read only / Reuse cache from centralized job
In case you are using a centralized job to create and save your cache that can be reused by other jobs in your repository, this action will take care of your restore only needs and make the cache read-only.
In case you are using a centralized job to create and save your cache that can be reused by other jobs in your repository, this action will take care of your restore only needs and make the cache read-only.