diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ce9fdccda6b..76563737844 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -86,13 +86,14 @@ jobs: continue-on-error: true run: | dvc remote modify origin url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/gmt.dvc --local - dvc pull --remote origin --no-run-cache + dvc pull --remote origin --no-run-cache --force env: DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }} - name: Download DVC cache from GitHub Artifacts and restore baseline image data if: steps.dvc-pull.outcome == 'failure' run: | + rm -rf .dvc/cache/ gh run download -n dvc-cache -D .dvc/cache/ dvc checkout --force env: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a0478613913..3e1c16d7c88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -127,13 +127,14 @@ jobs: continue-on-error: true run: | dvc remote modify origin url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/gmt.dvc --local - dvc pull --remote origin --no-run-cache + dvc pull --remote origin --no-run-cache --force env: DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }} - name: Download DVC cache from GitHub Artifacts and restore baseline image data if: steps.dvc-pull.outcome == 'failure' run: | + rm -rf .dvc/cache gh run download -n dvc-cache -D .dvc/cache/ dvc checkout --force env: