Check if file exists
This commit is contained in:
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -35,12 +35,21 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true # Ensure LFS files are pulled
|
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
|
- name: Ensure required file is fetched
|
||||||
run: |
|
run: |
|
||||||
git fetch origin main
|
git fetch origin main
|
||||||
git checkout origin/main -- .cache/calibration/aloha_default/left_follower.json
|
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
|
- name: Install apt dependencies
|
||||||
run: sudo apt-get update && sudo apt-get install -y libegl1-mesa-dev ffmpeg
|
run: sudo apt-get update && sudo apt-get install -y libegl1-mesa-dev ffmpeg
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user