Claude commited on
Commit
7aa0b61
·
unverified ·
1 Parent(s): f5ff7a7

ci: Simplify workflow to debug sync issues

Browse files
.github/workflows/sync-to-huggingface.yml CHANGED
@@ -17,19 +17,20 @@ jobs:
17
  sync:
18
  runs-on: ubuntu-latest
19
  steps:
20
- - name: Harden Runner
21
- uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
22
- with:
23
- egress-policy: audit
24
-
25
  - name: Checkout repository
26
  uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27
  with:
28
  fetch-depth: 0
29
  lfs: true
30
 
 
 
 
 
 
31
  - name: Push to HuggingFace Spaces
32
  env:
33
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
34
  run: |
35
- git push --force https://jonathanagustin:$HF_TOKEN@huggingface.co/spaces/jonathanagustin/video_analyzer main
 
 
17
  sync:
18
  runs-on: ubuntu-latest
19
  steps:
 
 
 
 
 
20
  - name: Checkout repository
21
  uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22
  with:
23
  fetch-depth: 0
24
  lfs: true
25
 
26
+ - name: Configure git
27
+ run: |
28
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
29
+ git config --global user.name "github-actions[bot]"
30
+
31
  - name: Push to HuggingFace Spaces
32
  env:
33
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
34
  run: |
35
+ git remote add hf https://jonathanagustin:$HF_TOKEN@huggingface.co/spaces/jonathanagustin/video_analyzer || true
36
+ git push --force hf main