21 lines
735 B
YAML
21 lines
735 B
YAML
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"
|