diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 09b666146c..10992c129d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -517,7 +517,7 @@ jobs: - name: Save Library/PackageCache cache uses: actions/cache/save@v4 - if: github.ref == 'refs/heads/main' && steps.check_packagecache.outputs.changes == 0 && steps.cache_packagecache.outputs.cache-hit != 'true' && ! matrix.packages_to_remove # Ideally, we'd save caches on branches, but they're too big, and branch caches can evict those from main, which is unacceptable. + if: steps.check_packagecache.outputs.changes == 0 && steps.cache_packagecache.outputs.cache-hit != 'true' && ! matrix.packages_to_remove # Ideally, we'd save caches on branches, but they're too big, and branch caches can evict those from main, which is unacceptable. env: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 10 with: