Spaces:
Sleeping
Sleeping
Commit
·
3d58595
1
Parent(s):
421351e
fix: update HF authentication method
Browse files
.github/workflows/Push_to_hf.yaml
CHANGED
@@ -13,16 +13,11 @@ jobs:
|
|
13 |
with:
|
14 |
fetch-depth: 0
|
15 |
|
16 |
-
- name: Install Python
|
17 |
-
uses: actions/setup-python@v4
|
18 |
-
with:
|
19 |
-
python-version: '3.12'
|
20 |
-
|
21 |
- name: Push to Space
|
22 |
env:
|
23 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
24 |
run: |
|
25 |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
26 |
git config --global user.name "github-actions[bot]"
|
27 |
-
git remote
|
28 |
-
git push
|
|
|
13 |
with:
|
14 |
fetch-depth: 0
|
15 |
|
|
|
|
|
|
|
|
|
|
|
16 |
- name: Push to Space
|
17 |
env:
|
18 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
19 |
run: |
|
20 |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
21 |
git config --global user.name "github-actions[bot]"
|
22 |
+
git remote set-url origin "https://$[email protected]/spaces/jatinmehra/CRAWL-GPT-CHAT"
|
23 |
+
git push origin main || (git branch -M main && git push -f origin main)
|