about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-16 21:22:17 +0000
committerbors <bors@rust-lang.org>2023-11-16 21:22:17 +0000
commitedefa9770da49f0fdefec55f4d23fe6a410620ab (patch)
treee0ca9cb5a778f2cb53419161e620f378f9cac968
parentedb720b199083f4107b858a8761648065bf38d86 (diff)
parent8d89cc4307f4d76ea2ef205953714ef020e86237 (diff)
downloadrust-edefa9770da49f0fdefec55f4d23fe6a410620ab.tar.gz
rust-edefa9770da49f0fdefec55f4d23fe6a410620ab.zip
Auto merge of #11824 - flip1995:ci-update-rust-cache-gha, r=Alexendoo
Update rust-cache GHA in deploy workflow

This action was way outdated, produced a lot of warnings and didn't seem to work anymore.

changelog: none
-rw-r--r--.github/workflows/deploy.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index f42928c2cd1..999ee7acfe7 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -52,7 +52,9 @@ jobs:
       run: cargo generate-lockfile
 
     - name: Cache
-      uses: Swatinem/rust-cache@v1.3.0
+      uses: Swatinem/rust-cache@v2.7.0
+      with:
+        save-if: ${{ github.ref == 'refs/heads/master' }}
 
     - name: cargo collect-metadata
       run: cargo collect-metadata