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 b1342ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/run_use_cases_examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,20 @@ jobs:
run:
shell: bash
steps:
- name: Checkout Code
uses: actions/checkout@v2

- 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
- name: Checkout Code
uses: actions/checkout@v4
with:
lfs: true

- 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 b1342ed

Please sign in to comment.