Calculate key based on multiple locations
See original GitHub issueIt would be great to have the ability to calculate cache key based on multiple locations. Have a look at my example project: https://github.com/railsconfig/config
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/gemfiles/**') }}-${{ hashFiles('*.gemspec') }}
would be better expressed as:
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles(['**/gemfiles/**', '*.gemspec']) }}
Unfortunately, there is no way to pass an array of files to the hashFiles
function.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Dart/Flutter: How can i calculate values of multiple maps which ...
I want to combine these maps and sum the values that contains the same key and store it in an another map. For...
Read more >How to Make a Distance Matrix & Calculate Times to Multiple ...
Learn how to create a distance matrix and calculate travel times to multiple destinations.
Read more >How to calculate the key size of a redesign of Enigma
To compute bit length equivalent of your key, you need to compute log2(Ω) where Ω is the space of possible keys.
Read more >Excel Multiple Criteria Lookup INDEX MATCH or FILTER
To calculate the price based on 2 criteria, enter this array-entered* INDEX and MATCH formula in cell E13. The formula is explained below....
Read more >Calculating values for Primary Key – SQLServerCentral Forums
Hello All, I have two tables. The First table is staging table where I have data called MatCodeID, MatCode, MatDesc
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👋 Hi all, this is supported by
hashFiles
but not documented.To specify multiple patterns, you can pass a comma separated list:
I will make sure this is documented.
This is now documented: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#example-with-multiple-patterns