Files
tp/.gitea/workflows/mirror.yml
T

17 lines
433 B
YAML

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