cache icon indicating copy to clipboard operation
cache copied to clipboard

Cache dependencies and build outputs in GitHub Actions

Results 377 cache issues
Sort by recently updated
recently updated
newest added

Add `cache-primary-key` and `cache-matched-key` outputs from `actions/cache/restore` action to `actions/cache` action ## Description The `actions/cache/restore` action provides `cache-hit`, `cache-primary-key` and `cache-matched-key` outputs, but the `actions/cache` only exposes `cache-hit`. ## Motivation...

Hello team. Would appreciate if you take a look and provide some insights, suggestions or even a fix for the following: Context: We have about 130 workflows that can run...

In some cases you want to read but not save a new cache. For instance when you run workflows on a tag action, then you probably want to read caches...

Using the last version of the actions/cache we have started to receive the following error: ``` Failed to save: Unable to reserve cache with key ....., another job may be...

I run workflows using both Github-hosted runners and self-hosted runners. When a Github-hosted runner stores an artifact in the cache, the self-hosted runner does not find it, even though it...

I'm seeing unexpected cache misses when pushing commits to a feature branch. I have the cache action set up like this: ``` - name: Fetch cache uses: actions/cache@v4 with: key:...

Steps to reproduce error ``` name: Caching venv on: push jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Cache venv id: cache-venv uses: actions/cache@v4 with: path: .venv key:...

In the actions workflow the below snippet is present to cache the pip dependencies, now getting the below error while inserting anything in the mentioned directory. This was working fine...

In some places it is stated that `cache-hit` evaluates to the empty string when if fails, notably here: - https://github.com/actions/cache/blob/main/README.md?plain=1#L86-L88 - Also here: https://github.com/actions/cache/issues/1466#issuecomment-2400480945 (I found this issue reading the...

Several users are confused about what `restore-keys` actually does or in what contexts it should be used. See this [StackOverflow Q&A](https://stackoverflow.com/a/79575296/3873510). A more intuitive name would be `fallback-keys`, `backup-keys`, or...