ci: align Rust cache comments with master-only access

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Devin Foley 2026-09-10 19:19:27 -07:00
parent a41b759f47
commit 5b0417c88c
1 changed files with 2 additions and 2 deletions

View File

@ -247,8 +247,8 @@ jobs:
# dependencies; never restore installed executables from cargo/bin.
cache-workspace-crates: false
cache-bin: false
# Manual candidate refs may read the cache, but only a successful
# master push verifying its own commit can populate the shared cache.
# The step guard also restricts restores. Save only after a successful
# master-push verification of that push's exact commit.
save-if: ${{ github.repository == 'paperclipai/paperclip' && github.event_name == 'push' && github.ref == 'refs/heads/master' && inputs.ref == github.sha }}
- name: Install dependencies