GitHub Actions 1 · Languages, caching and artifacts

Cache files between runs

Cache any folder, keyed by a hash of a lock file.

- uses: actions/cache@v4
  with:
    path: ~/.cache
    key: ${{ runner.os }}-cache-${{ hashFiles('**/lockfile') }}

Official GitHub Actions 1 documentation

More languages, caching and artifacts commands

All languages, caching and artifacts commands · GitHub Actions 1 cheatsheet

Was this page helpful?