Merge pull request #309 from CampingOn/silverzoo-patch-1 #144
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 to GitLab | |
on: | |
push: | |
branches: | |
- main # 미러링할 브랜치 | |
- dev # 추가로 미러링할 브랜치 | |
jobs: | |
push-to-gitlab: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # 모든 히스토리를 가져옴 | |
- name: Push to GitLab | |
env: | |
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} | |
run: | | |
git remote add gitlab ${{ secrets.GITLAB_URL }} | |
git push gitlab |