Selaa lähdekoodia

fix(cache): add cleanup for leftover archive artifacts in cache save action

trae 3 kuukautta sitten
vanhempi
sitoutus
4de5c76095
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      .github/actions/cache-save/action.yml

+ 6 - 0
.github/actions/cache-save/action.yml

@@ -151,5 +151,11 @@ runs:
             fi
             rm -f "$FILENAME"
           fi
+          # Cleanup any leftover archive artifacts (single-file or split parts)
+          if [ "${{ inputs.debug }}" = "true" ]; then
+            echo "Cleaning archive artifacts: ${BASE_FILENAME}*"
+          fi
+          rm -f "${BASE_FILENAME}"* || true
+
           echo "::endgroup::"
         fi