From 315011f1db0e022e175a0cab1fdfd68eceac4ab8 Mon Sep 17 00:00:00 2001 From: 29 <791603901@qq.com> Date: Wed, 20 Nov 2024 06:52:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20(workflows):=20Add=20automatic?= =?UTF-8?q?=20mirroring=20to=20`GitLab`=20and=20`Gitee`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mirror.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..e070af4 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,21 @@ +on: [push, workflow_dispatch] + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: yesolutions/mirror-action@master + with: + REMOTE: 'https://gitlab.com/opensound-org/template-rs.git' + REMOTE_NAME: gitlab + GIT_USERNAME: czy29 + GIT_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} + - uses: yesolutions/mirror-action@master + with: + REMOTE: 'https://gitee.com/opensound-org/template-rs.git' + REMOTE_NAME: gitee + GIT_USERNAME: czy29 + GIT_PASSWORD: ${{ secrets.GITEE_PASSWORD }}