[CI] Only save caches from master (#7186)

* Save caches only from master

* Save cache only from master

* Update desktop-build.yml
This commit is contained in:
tooomm 2026-09-20 16:15:24 +02:00 committed by GitHub
parent 1405952f1b
commit d9cd2d1750
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -76,7 +76,7 @@ jobs:
uses: docker/build-push-action@v7
with:
cache-from: type=gha,scope=${{ env.CACHE_SCOPE }}
cache-to: type=gha,mode=max,scope=${{ env.CACHE_SCOPE }}
cache-to: ${{ case(github.ref == 'refs/heads/master', format('type=gha,mode=max,scope={0}', env.CACHE_SCOPE), '') }}
context: .
platforms: ${{ matrix.platform }}
push: false