Procházet zdrojové kódy

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

trae před 3 měsíci
rodič
revize
4de5c76095
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  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