Spaces:
Runtime error
Runtime error
Prajwal Paudyal commited on
Commit ·
aee6612
1
Parent(s): 21711c5
fixes a failed build issue with actions on self github identity
Browse files
.github/workflows/main_doubledeployment.yml
CHANGED
|
@@ -22,6 +22,8 @@ jobs:
|
|
| 22 |
env:
|
| 23 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 24 |
run: |
|
|
|
|
|
|
|
| 25 |
[[ -f README.md ]] && git rm README.md
|
| 26 |
git mv README_interviewer.md README.md
|
| 27 |
git commit -m "Renamed README for Interviewer space"
|
|
@@ -37,7 +39,14 @@ jobs:
|
|
| 37 |
env:
|
| 38 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 39 |
run: |
|
|
|
|
|
|
|
| 40 |
[[ -f README.md ]] && git rm README.md
|
| 41 |
git mv README_researcher.md README.md
|
| 42 |
git commit -m "Renamed README for Researcher space"
|
| 43 |
-
git push -f https://qualz:$HF_TOKEN@huggingface.co/spaces/qualz/researcher main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
env:
|
| 23 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 24 |
run: |
|
| 25 |
+
git config user.name "Github Action"
|
| 26 |
+
git config user.email "action@github.com"
|
| 27 |
[[ -f README.md ]] && git rm README.md
|
| 28 |
git mv README_interviewer.md README.md
|
| 29 |
git commit -m "Renamed README for Interviewer space"
|
|
|
|
| 39 |
env:
|
| 40 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 41 |
run: |
|
| 42 |
+
git config user.name "Github Action"
|
| 43 |
+
git config user.email "action@github.com"
|
| 44 |
[[ -f README.md ]] && git rm README.md
|
| 45 |
git mv README_researcher.md README.md
|
| 46 |
git commit -m "Renamed README for Researcher space"
|
| 47 |
+
git push -f https://qualz:$HF_TOKEN@huggingface.co/spaces/qualz/researcher main
|
| 48 |
+
|
| 49 |
+
# Reset changes to prepare for next push
|
| 50 |
+
- name: Reset git changes
|
| 51 |
+
run: |
|
| 52 |
+
git reset --hard origin/main
|