From 885009446c234eb1b7cf1c855a60cbe272b31064 Mon Sep 17 00:00:00 2001 From: 29 <791603901@qq.com> Date: Thu, 19 Sep 2024 20:08:28 +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 添加到`gitlab`和`gitee`的自动镜像 --- .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..dd2b825 --- /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/opensound.git' + REMOTE_NAME: gitlab + GIT_USERNAME: czy29 + GIT_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} + - uses: yesolutions/mirror-action@master + with: + REMOTE: 'https://gitee.com/opensound-org/opensound.git' + REMOTE_NAME: gitee + GIT_USERNAME: czy29 + GIT_PASSWORD: ${{ secrets.GITEE_PASSWORD }}