Skip to content

Commit

Permalink
chore: add git lfs
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrery committed Apr 16, 2024
1 parent 8a3fa77 commit 4bf2a9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/run_use_cases_examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion script/make_utils/run_use_case_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
Expand All @@ -114,4 +121,4 @@ main() {
fi
}

main "$@"
main "$@"

0 comments on commit 4bf2a9b

Please sign in to comment.