소스 검색

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

trae 3 달 전
부모
커밋
4de5c76095
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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