Browse Source

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

trae 3 months ago
parent
commit
4de5c76095
1 changed files with 6 additions and 0 deletions
  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