Compare commits

..

4 Commits

Author SHA1 Message Date
Egor Basalyga
9088810aaa Update mirror.yml
Some checks failed
Mirror to Gitea / git-sync (push) Has been cancelled
2026-03-26 23:40:37 +02:00
Egor Basalyga
03c323a1a4 Update mirror.yml 2026-03-26 23:39:28 +02:00
Egor Basalyga
a300b7033a Rename mirror.yml to .github/workflows/mirror.yml 2026-03-26 23:36:43 +02:00
Egor Basalyga
a0833865c8 Create mirror.yml 2026-03-26 23:30:47 +02:00

20
.github/workflows/mirror.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Mirror to Gitea
on:
push:
delete:
jobs:
git-sync:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitea
uses: wei/git-sync@v3
with:
# Теперь мы используем автоматический токен GitHub для доступа к исходному коду
source_repo: "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/Egorbasalyga/VisionAsist.git"
source_branch: "main"
# Ссылка на Gitea остается без изменений
destination_repo: "https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@git.vision-software.ru/Egor/Vision.git"
destination_branch: "main"