SDL: ci: only store cache vita reqs when restore-cache didn't find anything

From e77132b8aa62b9431832e5652d03fa95e77960cf Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 26 Feb 2023 20:38:23 +0100
Subject: [PATCH] ci: only store cache vita reqs when restore-cache didn't find
 anything

---
 .github/workflows/vita.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/vita.yml b/.github/workflows/vita.yml
index f553e677edcb..2842bff29f15 100644
--- a/.github/workflows/vita.yml
+++ b/.github/workflows/vita.yml
@@ -78,6 +78,7 @@ jobs:
         unzip /tmp/vitasdk_stubs.zip -d/vita/dependencies/lib
 
     - uses: actions/cache/save@v3
+      if: ${{ !steps.restore-cache.outputs.cache-hit }}
       with:
         path: /vita/dependencies
         key: ${{ matrix.platform.artifact }}-${{ matrix.platform.version }}