From 3642e1d123bf7183966682c68bd2c47a6067f1ae Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Mon, 10 Nov 2025 09:42:04 +0800 Subject: [PATCH] CI: Remove the .dvc/cache directory before downloading dvc-cache from GitHub --- .github/workflows/ci_tests.yaml | 1 + .github/workflows/ci_tests_dev.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index ba03ef488b4..8c14fd1935b 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -174,6 +174,7 @@ jobs: - name: Download DVC cache as artifacts from GitHub if: steps.dvc-pull.outcome == 'failure' run: | + rm -rvf .dvc/cache/ gh run download --name dvc-cache --dir .dvc/cache/ uv run dvc checkout --verbose env: diff --git a/.github/workflows/ci_tests_dev.yaml b/.github/workflows/ci_tests_dev.yaml index 3bb4b89616f..f4f55cfe2cb 100644 --- a/.github/workflows/ci_tests_dev.yaml +++ b/.github/workflows/ci_tests_dev.yaml @@ -172,6 +172,7 @@ jobs: - name: Download DVC cache as artifacts from GitHub if: steps.dvc-pull.outcome == 'failure' run: | + rm -rvf .dvc/cache/ gh run download --name dvc-cache --dir .dvc/cache/ dvc checkout --verbose env: