gitlab-ci: Fix MacPorts cache never being pulled on non-master branches

This is the same logic of our Flatpak deps script. But,
for now, it will only work on gimp project, not on forks.
This commit is contained in:
Bruno Lopes 2026-03-07 08:33:16 -03:00
parent ed108d9941
commit ba227a6cec

View file

@ -688,6 +688,7 @@ deps-macos-inhouse-part1:
stage: dependencies
cache:
- key: $CI_PROJECT_NAMESPACE
unprotect: true
paths:
- macports-cached
policy: pull
@ -721,6 +722,7 @@ deps-macos-inhouse:
stage: dependencies
cache:
- key: $CI_PROJECT_NAMESPACE
unprotect: true
paths:
- macports-cached
policy: push