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
docs: fix source files hash calculation #54509
docs: fix source files hash calculation #54509
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Orca Security Scan Summary
Status | Check | Issues by priority | |
---|---|---|---|
Passed | Secrets | 0 0 0 0 | View in Orca |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, this should be correct as is per the pattern matching documentation https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JJ, it looks to be the recommendation for hashFiles
here: https://docs.github.com/en/actions/learn-github-actions/expressions#example-with-multiple-patterns
So the PR looks good to me. Thanks!
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
Hello!
I recently tried to cache the
.next/cache
directory in a GitHub action following what was said in the documentation and realized that hashing the source files didn't work properly.This problem also occured in next-cache and was fixed by this PR.
This PR simply changes the example from the documentation to apply the same fix (stop using brackets in the patterns passed to
hashFiles
).Hope it helps!
Improving Documentation
pnpm prettier-fix
to fix formatting issues before opening the PR.