refactor: prepare for review #126
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: Sync to gitlab.eduxiji.net | |
# based on https://github.com/neuq-rcore/rCore/blob/vf2/.github/workflows/mirror.yml | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
env: | |
SITE: gitlab.eduxiji.net | |
USER_NAME: T202410145994247 | |
REPO_NAME: OSKernel2024-MikuOS | |
REMOTE_NAME: gitlab-xiji | |
steps: | |
# fetch all history | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# setup env | |
- name: Setup git | |
run: | | |
git config --global user.name "Shetty Yttehs" | |
git config --global user.email "[email protected]" | |
# git push | |
- name: Push all | |
run: | | |
git remote add ${{ env.REMOTE_NAME }} https://${{ env.USER_NAME }}:${{ secrets.GITLAB_XIJI_TOKEN }}@${{ env.SITE }}/${{ env.USER_NAME }}/${{ env.REPO_NAME }}.git | |
git push -f --all ${{ env.REMOTE_NAME }} | |
git push -f --tags ${{ env.REMOTE_NAME }} |