Skip to content

How does the GitHub Actions Cache size limit work for Pull Requests? #25242

Answered by dhadka
lhotari asked this question in Actions
Discussion options

You must be logged in to vote

It will write to the cache in whichever repo is running the workflow. To see which it is, find which repo (fork or upstream) that has the run in the Actions tab. Here’s what I saw with some testing:

  1. If you make changes within a fork (e.g., a PR merging from myfork:mybranchmyfork:main), the Action runs within the fork and the cache says within the fork.

  2. If you send a PR to the upstream repo (e.g., myfork:mybranchupstream:main), then the Action runs within the upstream repo and consequently the cache is created within the upstream repo.

In case there are concerns about case #2, note that a maintainer in the upstream repo must first approve the PR before the workflow will run - A…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants