ci: mirror repo to GitLab on push + every 6 hours

This commit is contained in:
2026-06-13 05:24:12 +05:00
parent 16cdb95ffc
commit dd66c040e1
+16
View File
@@ -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