Spaces:
Running
Running
Commit
·
d17cf2c
1
Parent(s):
e053a54
Standardize force push code
Browse files
.github/workflows/force_update.yml
CHANGED
@@ -12,20 +12,13 @@ jobs:
|
|
12 |
with:
|
13 |
fetch-depth: 0
|
14 |
|
15 |
-
- name: Configure Git
|
16 |
-
run: |
|
17 |
-
git config --global user.name "github-actions[bot]"
|
18 |
-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
19 |
-
|
20 |
-
- name: Force push to HF space
|
21 |
env:
|
|
|
|
|
22 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
23 |
run: |
|
24 |
-
|
25 |
-
git config --global
|
26 |
-
echo "https://oauth:[email protected]" > ~/.git-credentials
|
27 |
-
|
28 |
-
# Force push to your pre-configured HF space
|
29 |
-
git push --force space main:main
|
30 |
|
31 |
-
|
|
|
12 |
with:
|
13 |
fetch-depth: 0
|
14 |
|
15 |
+
- name: Configure Git and Force push to HF space
|
|
|
|
|
|
|
|
|
|
|
16 |
env:
|
17 |
+
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
18 |
+
GH_USERNAME: ${{ secrets.BOT_USERNAME }}
|
19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
run: |
|
21 |
+
git config --global user.email "[email protected]"
|
22 |
+
git config --global user.name $GH_USERNAME
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
git push -f https://HF_USERNAME:[email protected]/spaces/argmaxinc/whisperkit-benchmarks
|