Loading .github/workflows/sync.yml +15 −3 Changes for .github/workflows/sync.yml: 15 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -16,8 +16,20 @@ jobs: cd /tmp/tmp_push git clone --bare https://github.com/liziwl/sustech-master-thesis.git this_repo cd this_repo git push --force --mirror "https://${GITEE_USER}:${GITEE_PERSONAL_TOKEN}@${REPO_URL}" git push --force --mirror "https://${USER}:${PERSONAL_TOKEN}@${REPO_URL}" env: GITEE_USER: ${{ secrets.GITEE_USER }} GITEE_PERSONAL_TOKEN: ${{ secrets.GITEE_PERSONAL_TOKEN }} USER: ${{ secrets.GITEE_USER }} PERSONAL_TOKEN: ${{ secrets.GITEE_PERSONAL_TOKEN }} REPO_URL: "gitee.com/liziwl/sustech-master-thesis.git" - name: Push to sustech-git run: | mkdir -p /tmp/tmp_push2 cd /tmp/tmp_push2 git clone --bare https://github.com/liziwl/sustech-master-thesis.git this_repo cd this_repo git push --force --mirror "https://${USER}:${PERSONAL_TOKEN}@${REPO_URL}" env: USER: project_160_bot PERSONAL_TOKEN: ${{ secrets.GITLAB_PERSONAL_TOKEN }} REPO_URL: "mirrors.sustech.edu.cn/git/liziwl/sustech-master-thesis.git" No newline at end of file Loading
.github/workflows/sync.yml +15 −3 Changes for .github/workflows/sync.yml: 15 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -16,8 +16,20 @@ jobs: cd /tmp/tmp_push git clone --bare https://github.com/liziwl/sustech-master-thesis.git this_repo cd this_repo git push --force --mirror "https://${GITEE_USER}:${GITEE_PERSONAL_TOKEN}@${REPO_URL}" git push --force --mirror "https://${USER}:${PERSONAL_TOKEN}@${REPO_URL}" env: GITEE_USER: ${{ secrets.GITEE_USER }} GITEE_PERSONAL_TOKEN: ${{ secrets.GITEE_PERSONAL_TOKEN }} USER: ${{ secrets.GITEE_USER }} PERSONAL_TOKEN: ${{ secrets.GITEE_PERSONAL_TOKEN }} REPO_URL: "gitee.com/liziwl/sustech-master-thesis.git" - name: Push to sustech-git run: | mkdir -p /tmp/tmp_push2 cd /tmp/tmp_push2 git clone --bare https://github.com/liziwl/sustech-master-thesis.git this_repo cd this_repo git push --force --mirror "https://${USER}:${PERSONAL_TOKEN}@${REPO_URL}" env: USER: project_160_bot PERSONAL_TOKEN: ${{ secrets.GITLAB_PERSONAL_TOKEN }} REPO_URL: "mirrors.sustech.edu.cn/git/liziwl/sustech-master-thesis.git" No newline at end of file