actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.39k stars 1.17k forks source link

doc: need to document limits on cache keys #1225

Open srl295 opened 11 months ago

srl295 commented 11 months ago

I was trying to use ${{ github.head_ref }} as part of a cache key, however this ends up with:

  with:
    …
    key: git-main-CLDR-17028-Add-test-for-person-names,-and-regenerated-files
    restore-keys: git-main-CLDR-17028-Add-test-for-person-names,-and-regenerated-files

causes:

Error: Key Validation Error: git-main-CLDR-17028-Add-test-for-person-names,-and-regenerated-files cannot contain commas

I see this in the tests and underlying library, but is it documented where the limitations on cache keys are?

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.

srl295 commented 4 months ago

Well it helped someone. Maybe I can pr