Skip to content

Commit 60b21e1

Browse files
committed
ci: only save cache on main
1 parent b601d7f commit 60b21e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
with:
4646
add-job-id-key: "false"
4747
shared-key: "base"
48+
save-if: ${{ github.ref_name == 'main' }}
4849
# Fetch dependencies in a separate step to clearly show how long each part
4950
# of the testing takes
5051
- name: cargo fetch --locked

0 commit comments

Comments
 (0)