More sophisticated example for hashFiles
function
#32305
Labels
actions
This issue or pull request should be reviewed by the docs actions team
content
This issue or pull request belongs to the Docs Content team
help wanted
Anyone is welcome to open a pull request to fix this issue
SME reviewed
An SME has reviewed this issue/PR
test-create-tracking-issue
Creates and links an SME review tracking issue internally
Projects
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/learn-github-actions/expressions#hashfiles
What part(s) of the article would you like to see updated?
I think it'd be beneficial if the
hashFiles
function showed slightly more sophisticated examples.For example, what if I want to invalidate the cache any time
.rs
files at the top level of thesrc/
directory change?I.e., I'd like to invalidate the cache if
src/main.rs
orsrc/constants.rs
change, but not if anything insrc/misc/
changes.Additional information
No response
The text was updated successfully, but these errors were encountered: