From 50a979d6de92d1ee911aca99ff7dbd688dace54b Mon Sep 17 00:00:00 2001 From: Remi Cadene Date: Fri, 27 Sep 2024 16:33:58 +0200 Subject: [PATCH] Check if file exists --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d8d24f59..4ff82456 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,12 +35,21 @@ jobs: - uses: actions/checkout@v4 with: lfs: true # Ensure LFS files are pulled + fetch-depth: 0 # Ensure the full history is fetched, not just the latest commit - name: Ensure required file is fetched run: | git fetch origin main git checkout origin/main -- .cache/calibration/aloha_default/left_follower.json + - name: Check if file exists + run: | + if [ -f .cache/calibration/aloha_default/left_follower.json ]; then + echo "File exists"; + else + echo "File does not exist"; + fi + - name: Install apt dependencies run: sudo apt-get update && sudo apt-get install -y libegl1-mesa-dev ffmpeg