I have a problem that my builds dont find the cache with the exact same key… I found out that it is because of the cache scope. If I understand correctly I need to create a cache with the default branch, but how can I do this with the pull_request restriction? If I create a PR with the default branch, the scope is the refs/pull/1234/merge and not the branch. I need to have a workflow that only create the cache on push?
Hi @luiszimmermann ,
I’m afraid your request can not be supported. I tried and tested but did not find any method to do this. And I even tried to use commands to changes the value of branch ref, but it also does not work.