burrunan / gradle-cache-action

GitHub Action to properly cache ~/.gradle folder
Apache License 2.0
150 stars 13 forks source link

gradle-dependencies-cache-key should accept string instead of files #46

Open anuraaga opened 3 years ago

anuraaga commented 3 years ago

GitHub caching has a standard pattern of calling the magic hashFiles function for creating cache keys

https://github.com/actions/cache#creating-a-cache-key

It seems worth it to follow the pattern here too, to allow using a non-file for the key too. In the meantime, we have to echo the value into a file