Skip to content

Commit 2d0cf12

Browse files
authored
chore: Update cache saving policy for github actions (#2406)
1 parent 083a098 commit 2d0cf12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci-pre-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
pythnet/message_buffer
3838
pythnet/pythnet_sdk
3939
pythnet/stake_caps_parameters
40+
# We only save the cache from runs on `main` because the cache is ~5GB, and the total Github Cache limit is 10GB.
41+
# Branches have their own caches, so saving this cache on PRs can result in evicting the main cache.
42+
save-if: ${{ github.ref == 'refs/heads/main' }}
4043
- name: Install protoc
4144
uses: arduino/setup-protoc@v3
4245
with:

0 commit comments

Comments
 (0)