You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the vast majority of users need to use hashFiles, enable a new input parameter called key-hash-files (name TBD) that allows users to specify paths an an array, e.g.
And then, each input in the array would be passed as an input to hashFiles, and the resulting hash would be added to the key name. Each hash would be prefixed by -.
Actions CacheFor topics related to the actions/cache action in GitHub workflowsTransferredThese are discussions that have recently Transferred from another org/repo
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Generating the primary key is a little difficult when a lot of files need to be hashed. Here's an example from our repo:
That's a rather verbose line of code.
Solution
Since the vast majority of users need to use
hashFiles
, enable a new input parameter calledkey-hash-files
(name TBD) that allows users to specify paths an an array, e.g.And then, each input in the array would be passed as an input to
hashFiles
, and the resulting hash would be added to the key name. Each hash would be prefixed by-
.Beta Was this translation helpful? Give feedback.
All reactions