From 2b81778f7532be3decd058426a92208675122476 Mon Sep 17 00:00:00 2001 From: Wenbo Li Date: Sat, 9 Mar 2024 13:41:17 +0800 Subject: [PATCH] Add gitlab sync job in CI --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 06a8741..849f857 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: # Execute tests defined by the CMake configuration. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: make lab0 - sync: + sync-gitee: runs-on: ubuntu-22.04 steps: - name: Sync to Gitee @@ -39,4 +39,14 @@ jobs: with: source-repo: git@github.com:thu-db/huadb.git destination-repo: git@gitee.com:thu-db/huadb.git + sync-gitlab: + runs-on: ubuntu-22.04 + steps: + - name: Sync to GitLab + uses: wearerequired/git-mirror-action@master + env: + SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} + with: + source-repo: git@github.com:thu-db/huadb.git + destination-repo: git@git.tsinghua.edu.cn:dbtrain/huadb-template.git