| #!/bin/bash |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| source ~/.bashrc |
|
|
| |
| if [ -f .env ]; then |
| echo "Sourcing .env file..." |
| source .env |
| else |
| echo ".env file not found. Skipping." |
| fi |
|
|
| echo "MESSAGE: ${MESSAGE}" |
|
|
| |
| cd "${REPO_PATH}" |
|
|
| |
| git config credential.helper "store --file=.git-credentials" |
| echo "https://${HF_USERNAME}:${HF_ACCESS_TOKEN}@huggingface.co" > .git-credentials |
|
|
| git config --global user.name "Lingxi Li" |
| git config --global user.email "lilingxi01@gmail.com" |
|
|
| |
| git lfs install |
|
|
| |
| git add . |
| git commit -m "${MESSAGE}" |
| git push |
|
|
| |
| |
| git config --unset credential.helper |
|
|
|
|