From 6fab1ed470427934fbcfb8fff790b75881b4f5e2 Mon Sep 17 00:00:00 2001 From: cbackas Date: Sat, 3 Oct 2026 14:38:06 -0500 Subject: [PATCH] ci: conditionally cache docker layers --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5327852..a8f25b8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -66,5 +66,5 @@ jobs: tags: ghcr.io/cbackas/tvbot:pr-${{github.event.pull_request.number}} platforms: linux/amd64,linux/arm64 cache-from: type=gha - cache-to: type=gha,mode=max + cache-to: ${{ github.event.pull_request.head.repo.full_name == github.repository && 'type=gha,mode=max' || '' }} push: ${{ github.event.pull_request.head.repo.full_name == github.repository }}