Spaces:
Sleeping
Sleeping
Harshana
commited on
Commit
·
ac12061
1
Parent(s):
3f1b8aa
new update action
Browse files
.github/workflows/huggingface.yml
CHANGED
|
@@ -2,8 +2,6 @@ name: Sync to Hugging Face hub
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [main]
|
| 5 |
-
|
| 6 |
-
# to run this workflow manually from the Actions tab
|
| 7 |
workflow_dispatch:
|
| 8 |
|
| 9 |
jobs:
|
|
@@ -14,7 +12,15 @@ jobs:
|
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
| 16 |
lfs: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
- name: Push to hub
|
| 18 |
env:
|
| 19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 20 |
-
run:
|
|
|
|
|
|
|
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [main]
|
|
|
|
|
|
|
| 5 |
workflow_dispatch:
|
| 6 |
|
| 7 |
jobs:
|
|
|
|
| 12 |
with:
|
| 13 |
fetch-depth: 0
|
| 14 |
lfs: true
|
| 15 |
+
|
| 16 |
+
- name: Configure git
|
| 17 |
+
run: |
|
| 18 |
+
git config --global user.email "lakshara.21@cse.mrt.ac.lk"
|
| 19 |
+
git config --global user.name "HarshanaLF"
|
| 20 |
+
|
| 21 |
- name: Push to hub
|
| 22 |
env:
|
| 23 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 24 |
+
run: |
|
| 25 |
+
git remote set-url origin https://HarshanaLF:${HF_TOKEN}@huggingface.co/spaces/HarshanaLF/Final_Assignment
|
| 26 |
+
git push -f origin main
|