Spaces:
Running
Running
Commit
·
e053a54
1
Parent(s):
08ec5dc
Add new gh action to force push to space
Browse files
.github/workflows/force_update.yml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: WhisperKit Evals Force Update Space Workflow
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
workflow_dispatch:
|
| 5 |
+
|
| 6 |
+
jobs:
|
| 7 |
+
force-update:
|
| 8 |
+
runs-on: ubuntu-latest
|
| 9 |
+
steps:
|
| 10 |
+
- name: Checkout code
|
| 11 |
+
uses: actions/checkout@v4
|
| 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 |
+
# Configure git to use the HF token for authentication
|
| 25 |
+
git config --global credential.helper store
|
| 26 |
+
echo "https://oauth:$HF_TOKEN@huggingface.co" > ~/.git-credentials
|
| 27 |
+
|
| 28 |
+
# Force push to your pre-configured HF space
|
| 29 |
+
git push --force space main:main
|
| 30 |
+
|
| 31 |
+
echo "Successfully force pushed to Hugging Face space"
|