We could either:
- Look into including caching as part of the action itself.
- Add it to the example workflow.
Here's an example of how I implemented caching previously
https://github.com/MetaFam/TheSource/blob/f96bc3f66106ed4341d674b5a37a1fce8035c922/.github/workflows/generate-cred.yml#L19-L27
- name: SourceCred Cache
uses: actions/cache@v1
with:
# cred-action uses *workspace*/sourcecred_data as it's SOURCECRED_DIRECTORY.
# Only store the cache from that.
path: sourcecred_data/cache
key: SC_CACHE-${{ hashFiles('**/project.json') }}-${{ github.run_id }}
restore-keys: |
SC_CACHE-${{ hashFiles('**/project.json') }}-
SC_CACHE-
We could either:
Here's an example of how I implemented caching previously
https://github.com/MetaFam/TheSource/blob/f96bc3f66106ed4341d674b5a37a1fce8035c922/.github/workflows/generate-cred.yml#L19-L27