From a0833865c80e57dbf120e87787f652360b9aaa5d Mon Sep 17 00:00:00 2001 From: Egor Basalyga <82464635+Egorbasalyga@users.noreply.github.com> Date: Thu, 26 Mar 2026 23:30:47 +0200 Subject: [PATCH 1/4] Create mirror.yml --- mirror.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 mirror.yml diff --git a/mirror.yml b/mirror.yml new file mode 100644 index 0000000..74c8656 --- /dev/null +++ b/mirror.yml @@ -0,0 +1,17 @@ +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: + source_repo: "ваш-логин/ваш-репозиторий-в-github" + source_branch: "main" + destination_repo: "https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@ваша-gitea.com/логин/репозиторий.git" + destination_branch: "main" From a300b7033ac6f4106b4a447e9f3554529db7bf72 Mon Sep 17 00:00:00 2001 From: Egor Basalyga <82464635+Egorbasalyga@users.noreply.github.com> Date: Thu, 26 Mar 2026 23:36:43 +0200 Subject: [PATCH 2/4] Rename mirror.yml to .github/workflows/mirror.yml --- mirror.yml => .github/workflows/mirror.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename mirror.yml => .github/workflows/mirror.yml (100%) diff --git a/mirror.yml b/.github/workflows/mirror.yml similarity index 100% rename from mirror.yml rename to .github/workflows/mirror.yml From 03c323a1a47c5418166bbd452060ef87c8a05517 Mon Sep 17 00:00:00 2001 From: Egor Basalyga <82464635+Egorbasalyga@users.noreply.github.com> Date: Thu, 26 Mar 2026 23:39:28 +0200 Subject: [PATCH 3/4] Update mirror.yml --- .github/workflows/mirror.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 74c8656..2eeca13 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -11,7 +11,10 @@ jobs: - name: Sync to Gitea uses: wei/git-sync@v3 with: - source_repo: "ваш-логин/ваш-репозиторий-в-github" + # Замените ВАШ_GITHUB_ЛОГИН на ваш никнейм в GitHub + source_repo: "Egorbasalyga/VisionAsist" source_branch: "main" - destination_repo: "https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@ваша-gitea.com/логин/репозиторий.git" + + # Ссылка на Gitea сформирована правильно для доступа через Git + destination_repo: "https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@git.vision-software.ru/Egor/Vision.git" destination_branch: "main" From 9088810aaa1a13d6f83b81437496ba9480d90779 Mon Sep 17 00:00:00 2001 From: Egor Basalyga <82464635+Egorbasalyga@users.noreply.github.com> Date: Thu, 26 Mar 2026 23:40:37 +0200 Subject: [PATCH 4/4] Update mirror.yml --- .github/workflows/mirror.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 2eeca13..04c8ff2 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -11,10 +11,10 @@ jobs: - name: Sync to Gitea uses: wei/git-sync@v3 with: - # Замените ВАШ_GITHUB_ЛОГИН на ваш никнейм в GitHub - source_repo: "Egorbasalyga/VisionAsist" + # Теперь мы используем автоматический токен GitHub для доступа к исходному коду + source_repo: "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/Egorbasalyga/VisionAsist.git" source_branch: "main" - # Ссылка на Gitea сформирована правильно для доступа через Git + # Ссылка на Gitea остается без изменений destination_repo: "https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@git.vision-software.ru/Egor/Vision.git" destination_branch: "main"