Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about when key is rendered #1283

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add note about when key is rendered
  • Loading branch information
IanButterworth authored Nov 18, 2023
commit 9efb3f33bcbe5e22b5ec6457ebeaa04a7cd6cbdf
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -185,6 +185,9 @@ A cache key can include any of the contexts, functions, literals, and operators

For example, using the [`hashFiles`](https://docs.github.com/en/actions/learn-github-actions/expressions#hashfiles) function allows you to create a new cache when dependencies change.

> [!NOTE]
> The cache key is rendered during the restore stage, so can only depend on file state at that stage.

```yaml
- uses: actions/cache@v3
with: