| cache-name | The cache key prefix. The key body automatically includes the OS and, unless disabled, the matrix vars. Include any other parameters/details in this prefix to ensure one unique cache key per concurrent job type. | — | julia-cache;workflow=${{ github.workflow }};job=${{ github.job }} |
| include-matrix | Whether to include the matrix values when constructing the cache key. | — | true |
| gcp-bucket | Google Cloud Storage bucket to use for caching (e.g., 'my-cache-bucket'). If provided, this is used instead of the default Actions cache. | — | "" |
| depot | Path to a Julia depot directory where cached data will be saved to and restored from. | — | "" |
| cache-artifacts | Whether to cache the depot's `artifacts` directory. | — | true |
| cache-packages | Whether to cache the depot's `packages` directory. | — | true |
| cache-registries | Whether to cache the depot's `registries` directory. | — | true |
| cache-compiled | Whether to cache the depot's `compiled` directory. | — | true |
| cache-scratchspaces | Whether to cache the depot's `scratchspaces` directory. | — | true |
| cache-logs | Whether to cache the depot's `logs` directory. This helps automatic `Pkg.gc()` keep the cache size down. | — | true |
| delete-old-caches | Whether to delete old caches for the given key. | — | true |
| token | A GitHub PAT. Requires `repo` scope to enable the deletion of old caches. | — | ${{ github.token }} |
| save-always | Save the cache even if the job fails. Set to false to only save cache on successful jobs. | — | true |
| _matrix-json | Internal: JSON representation of the matrix context | — | ${{ toJSON(matrix) }} |
| _runner-os | Internal: Runner OS | — | ${{ runner.os }} |
| _github-run-id | Internal: GitHub run ID | — | ${{ github.run_id }} |
| _github-run-attempt | Internal: GitHub run attempt | — | ${{ github.run_attempt }} |
| _github-repository | Internal: GitHub repository | — | ${{ github.repository }} |
| _github-ref | Internal: GitHub ref | — | ${{ github.ref }} |
| _github-event-repository-default-branch | Internal: Default branch of the repository | — | ${{ github.event.repository.default_branch }} |
| _job-status | Internal: Job status for post step | — | ${{ job.status }} |