Spaces:
Running
Running
Merge pull request #6 from argmaxinc/force-push-to-space-workflow
Browse files
.github/workflows/force_update.yml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 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 "bots@takeargmax.com"
|
| 22 |
+
git config --global user.name $GH_USERNAME
|
| 23 |
+
|
| 24 |
+
git push -f https://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/argmaxinc/whisperkit-benchmarks
|