Skip to content

Cache Action

Cache actions are used to cache specific files to improve the execution time of future workflows.

Code

NuGet Packages

- uses: actions/cache@v3
  with:
    path: ~/.nuget/packages
    key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
    restore-keys: |
      ${{ runner.os }}-nuget-