Skip to content

Commit 54cebd8

Browse files
committed
Add .gitlab-ci.yml from main branch
1 parent 1c721ce commit 54cebd8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
stages:
2+
- mirror
3+
4+
mirror_students_to_github:
5+
stage: mirror
6+
rules:
7+
- if: '$CI_COMMIT_BRANCH == "students"'
8+
script:
9+
- git remote add github https://$GITHUB_USER:$GITHUB_TOKEN@github.com/$GITHUB_REPO.git
10+
# push "students" branch in GitLab to "main" branch in GitHub
11+
- git push --force-with-lease github HEAD:main

0 commit comments

Comments
 (0)