Loading .github/workflows/sync.ymldeleted 100644 → 0 +0 −35 Changes for .github/workflows/sync.yml: 0 added lines, 35 removed lines. Original line number Diff line number Diff line name: Sync to other git service on: push: schedule: - cron: '0 */3 * * *' # 每隔3小时运行一次同步 jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@master # - name: Push to gitee # run: | # mkdir -p /tmp/tmp_push # 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://${USER}:${PERSONAL_TOKEN}@${REPO_URL}" # env: # 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 .github/workflows/verify-compile.yml +33 −5 Changes for .github/workflows/verify-compile.yml: 33 added lines, 5 removed lines. Original line number Diff line number Diff line name: Verify compile name: Verify and sync on: push: branches: - master on: push jobs: build_latex: Loading @@ -27,3 +24,34 @@ jobs: publish_dir: ./public-test publish_branch: latest force_orphan: true sync: runs-on: ubuntu-latest name: Sync to other git service if: always() needs: build_latex steps: # - name: Push to gitee # run: | # mkdir -p /tmp/tmp_push # 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://${USER}:${PERSONAL_TOKEN}@${REPO_URL}" # env: # 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.ymldeleted 100644 → 0 +0 −35 Changes for .github/workflows/sync.yml: 0 added lines, 35 removed lines. Original line number Diff line number Diff line name: Sync to other git service on: push: schedule: - cron: '0 */3 * * *' # 每隔3小时运行一次同步 jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@master # - name: Push to gitee # run: | # mkdir -p /tmp/tmp_push # 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://${USER}:${PERSONAL_TOKEN}@${REPO_URL}" # env: # 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
.github/workflows/verify-compile.yml +33 −5 Changes for .github/workflows/verify-compile.yml: 33 added lines, 5 removed lines. Original line number Diff line number Diff line name: Verify compile name: Verify and sync on: push: branches: - master on: push jobs: build_latex: Loading @@ -27,3 +24,34 @@ jobs: publish_dir: ./public-test publish_branch: latest force_orphan: true sync: runs-on: ubuntu-latest name: Sync to other git service if: always() needs: build_latex steps: # - name: Push to gitee # run: | # mkdir -p /tmp/tmp_push # 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://${USER}:${PERSONAL_TOKEN}@${REPO_URL}" # env: # 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