Update mirror.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mirror GitLab Repository | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Push to GitLab | |
run: | | |
git remote add gitlab [email protected]:ug4-project/ugcore.git | |
git push --mirror gitlab | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }} |