actions / cache

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

Cache with Next.js is nor working! #1172

Closed ImBIOS closed 5 months ago

ImBIOS commented 1 year ago

image

I'm following this https://nextjs.org/docs/pages/building-your-application/deploying/ci-build-caching#github-actions

Can anyone help me?

manmen-mi commented 1 year ago

related docs

When a cache is created by a workflow run triggered on a pull request, the cache is created for the merge ref (refs/pull/.../merge). Because of this, the cache will have a limited scope and can only be restored by re-runs of the pull request. It cannot be restored by the base branch or other pull requests targeting that base branch.

maybe you can cache in main branch, and use in child ref/ (pr, tag, ...)

ImBIOS commented 1 year ago

related docs

When a cache is created by a workflow run triggered on a pull request, the cache is created for the merge ref (refs/pull/.../merge). Because of this, the cache will have a limited scope and can only be restored by re-runs of the pull request. It cannot be restored by the base branch or other pull requests targeting that base branch.

maybe you can cache in main branch, and use in child ref/ (pr, tag, ...)

Can you help me with some examples?

github-actions[bot] commented 5 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.