From 494ccb3c082fe2f2a6cc193183859064a136779e Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 3 Nov 2025 00:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-docker-image.yml | 48 ++++++++++++++---------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index f18c52b3..d10b4400 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -20,12 +20,14 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: wearerequired/git-mirror-action@v1 - env: - SSH_PRIVATE_KEY: ${{ secrets.GITLAB_SSH_PK }} + - uses: Yikun/hub-mirror-action@master with: - source-repo: https://github.com/whyour/qinglong.git - destination-repo: git@gitlab.com:whyour/qinglong.git + src: github/whyour + dst: gitlab/whyour + dst_key: ${{ secrets.GITLAB_SSH_PK }} + dst_token: ${{ secrets.GITLAB_TOKEN }} + static_list: "qinglong" + force_update: true code_gitee: runs-on: ubuntu-latest @@ -33,12 +35,14 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: wearerequired/git-mirror-action@v1 - env: - SSH_PRIVATE_KEY: ${{ secrets.GITLAB_SSH_PK }} + - uses: Yikun/hub-mirror-action@master with: - source-repo: https://github.com/whyour/qinglong.git - destination-repo: git@gitee.com:whyour/qinglong.git + src: github/whyour + dst: gitee/whyour + dst_key: ${{ secrets.GITLAB_SSH_PK }} + dst_token: ${{ secrets.GITEE_TOKEN }} + static_list: "qinglong" + force_update: true build-static: runs-on: ubuntu-latest @@ -82,12 +86,14 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: wearerequired/git-mirror-action@v1 - env: - SSH_PRIVATE_KEY: ${{ secrets.GITLAB_SSH_PK }} + - uses: Yikun/hub-mirror-action@master with: - source-repo: https://github.com/whyour/qinglong-static.git - destination-repo: git@gitlab.com:whyour/qinglong-static.git + src: github/whyour + dst: gitlab/whyour + dst_key: ${{ secrets.GITLAB_SSH_PK }} + dst_token: ${{ secrets.GITLAB_TOKEN }} + static_list: "qinglong-static" + force_update: true static_gitee: needs: build-static @@ -96,12 +102,14 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: wearerequired/git-mirror-action@v1 - env: - SSH_PRIVATE_KEY: ${{ secrets.GITLAB_SSH_PK }} + - uses: Yikun/hub-mirror-action@master with: - source-repo: https://github.com/whyour/qinglong-static.git - destination-repo: git@gitee.com:whyour/qinglong-static.git + src: github/whyour + dst: gitee/whyour + dst_key: ${{ secrets.GITLAB_SSH_PK }} + dst_token: ${{ secrets.GITEE_TOKEN }} + static_list: "qinglong-static" + force_update: true build: needs: build-static