From 023d108c87f1fa8529c18aad8772026c4262d991 Mon Sep 17 00:00:00 2001 From: jfrery Date: Tue, 16 Apr 2024 09:02:24 +0200 Subject: [PATCH] chore: add git lfs --- .github/workflows/run_use_cases_examples.yaml | 9 +++++---- script/make_utils/run_use_case_examples.sh | 9 ++++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run_use_cases_examples.yaml b/.github/workflows/run_use_cases_examples.yaml index 799c17076..486085df8 100644 --- a/.github/workflows/run_use_cases_examples.yaml +++ b/.github/workflows/run_use_cases_examples.yaml @@ -51,17 +51,18 @@ jobs: shell: bash steps: - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + 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 git - 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 "$@"