From 1994478fc451dcb40503526ecb6ce82f6615073c Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 18 Jul 2023 13:25:03 -0400 Subject: [PATCH] ci: upgrade caching --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e5b8f0..53a83aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,8 +33,9 @@ jobs: with: deno-version: v1.x - - name: Rust cache - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 + with: + save-if: ${{ github.ref == 'refs/heads/main' }} - name: Format if: contains(matrix.os, 'ubuntu')