WladlenVK commited on
Commit
19fdcb6
·
unverified ·
1 Parent(s): 4c2fe42

Update sync.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/sync.yml +2 -19
.github/workflows/sync.yml CHANGED
@@ -11,25 +11,8 @@ jobs:
11
  - uses: actions/checkout@v4
12
  with:
13
  fetch-depth: 0
14
-
15
- - name: Clean Reset and Sync
16
  env:
17
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
  run: |
19
- git config user.name github-actions
20
- git config user.email github-actions@github.com
21
-
22
- # 1. Откатываем состояние файлов к вашему коммиту
23
- git reset --hard 38f5c72bfd0d890617a572e3f388dfc9bc930ed5
24
-
25
- # 2. Сохраняем текущий sync.yml, чтобы избежать ошибки прав доступа
26
- git checkout HEAD@{1} -- .github/workflows/sync.yml
27
- git commit -m "System: Keep sync.yml to bypass restrictions" || true
28
-
29
- # 3. Настройка удаленных репозиториев
30
- git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
31
- git remote add hf https://WladlenVK:$HF_TOKEN@huggingface.co/spaces/WladlenVK/evolution-prometheus.git
32
-
33
- # 4. Принудительный пуш в оба места
34
- git push origin main --force
35
- git push hf main --force
 
11
  - uses: actions/checkout@v4
12
  with:
13
  fetch-depth: 0
14
+ - name: Push to HF
 
15
  env:
16
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
17
  run: |
18
+ git push --force https://WladlenVK:$HF_TOKEN@huggingface.co/spaces/WladlenVK/evolution-prometheus main