Sfoglia il codice sorgente

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

trae 3 mesi fa
parent
commit
4de5c76095
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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