You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skip saving cache when running in merge queue #1798
This is essentially a duplicate of #1243, which was closed due to inactivity.
Caches saved in the merge queue are essentially useless, as they save on its own branch.
So they cannot be restored from the default branch, nor from any PR branch.
Essentially, as far as I can tell, any cache saved in a merge queue can only be used in the situation where:
PR is added into the merge queue. Github creates main/pr1 branch.
It fails and is sent back
It is resubmitted to the merge queue. I assume github will reuse the main/pr1 branch name, in which case you might be able to get a cache hit.
I would imagine that the most sensible default behaviour would be to not save a cache by default if we're in a merge_group action, or perhaps add an option to do so to the main cache action.
The workaround currently is to use explicit restore and save actions and checking if we're in a merge queue, but it's fairly cumbersome.
Activity