diff --git a/.github/workflows/run_use_cases_examples.yaml b/.github/workflows/run_use_cases_examples.yaml index 799c17076..2cfd58a07 100644 --- a/.github/workflows/run_use_cases_examples.yaml +++ b/.github/workflows/run_use_cases_examples.yaml @@ -52,16 +52,17 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v2 + with: + lfs: true - name: Set up Environment run: | # Setup commands if any, for example, installing dependencies, etc. - apt-get update && apt-get install -y python3-venv make git git-lfs + apt-get update && apt-get install -y python3-venv make - name: Run Use Case Examples Script run: | - chmod +x ./script/make_utils/run_use_case_examples.sh - ./script/make_utils/run_use_case_examples.sh + bash ./script/make_utils/run_use_case_examples.sh stop-runner-linux: name: Stop EC2 runner diff --git a/script/make_utils/run_use_case_examples.sh b/script/make_utils/run_use_case_examples.sh index 378c63f9e..1f1bbeff1 100755 --- a/script/make_utils/run_use_case_examples.sh +++ b/script/make_utils/run_use_case_examples.sh @@ -14,6 +14,12 @@ check_directory_exists() { fi } +pull_git_lfs_objects() { + echo "Pulling files with Git LFS..." + git lfs pull + echo "Git LFS pull completed." +} + check_clean_git_status() { if git ls-files --others --exclude-standard | grep -q "$1"; then echo "Error: The repository is not clean. Untracked files found in $1." @@ -91,6 +97,7 @@ print_summary() { main() { check_directory_exists "$USE_CASE_DIR" + pull_git_lfs_objects check_clean_git_status "$USE_CASE_DIR_NAME" declare -a success_examples @@ -114,4 +121,4 @@ main() { fi } -main "$@" \ No newline at end of file +main "$@"