ci: mirror repo to GitLab on push + every 6 hours
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user