Skip to content

Commit

Permalink
Add gitlab sync job in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hnjylwb committed Mar 9, 2024
1 parent f2fdc09 commit 2b81778
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,4 +39,14 @@ jobs:
with:
source-repo: [email protected]:thu-db/huadb.git
destination-repo: [email protected]: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: [email protected]:thu-db/huadb.git
destination-repo: [email protected]:dbtrain/huadb-template.git

0 comments on commit 2b81778

Please sign in to comment.