Configure Git user identity in GitHub Actions workflow for Hugging Face sync
Browse files
.github/workflows/main.yml
CHANGED
@@ -24,12 +24,18 @@ jobs:
|
|
24 |
sudo apt-get install git-lfs
|
25 |
git lfs install
|
26 |
|
27 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
- name: Push to hub
|
29 |
env:
|
30 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
31 |
run: |
|
32 |
-
git lfs track "*.sqlite3" # Replace with the extension(s) of your large files
|
33 |
git add .
|
34 |
git commit -m "Add large files"
|
35 |
git push https://OxbridegeEcon:[email protected]/spaces/Oxbridge-Economics/Mailbox main --force
|
|
|
24 |
sudo apt-get install git-lfs
|
25 |
git lfs install
|
26 |
|
27 |
+
# Set Git user identity
|
28 |
+
- name: Configure Git
|
29 |
+
run: |
|
30 |
+
git config --global user.email "[email protected]"
|
31 |
+
git config --global user.name "GitHub Actions Bot"
|
32 |
+
|
33 |
+
# Track large files and push them to the Hugging Face Hub
|
34 |
- name: Push to hub
|
35 |
env:
|
36 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
37 |
run: |
|
38 |
+
git lfs track "*.sqlite3" # Replace with the extension(s) of your large files
|
39 |
git add .
|
40 |
git commit -m "Add large files"
|
41 |
git push https://OxbridegeEcon:[email protected]/spaces/Oxbridge-Economics/Mailbox main --force
|