Skip to content

Include caching #8

@Beanow

Description

@Beanow

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-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions