diff --git a/.gitea/workflows/mirror.yml b/.gitea/workflows/mirror.yml new file mode 100644 index 0000000..624edd7 --- /dev/null +++ b/.gitea/workflows/mirror.yml @@ -0,0 +1,16 @@ +name: Mirror to GitLab +on: + push: + schedule: + - cron: '0 */6 * * *' + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - name: Clone and push mirror + run: | + git clone --mirror https://git.yalarba.ru/valitovgaziz/tp.git ./mirror + cd ./mirror + git remote add gitlab https://oauth2:${{ secrets.GITLAB_MIRROR_TOKEN }}@gitlab.com/yalarba/tp.git + git push --mirror gitlab --force