From 431178087dd4f0ace5b38378cd0a03252f0cc478 Mon Sep 17 00:00:00 2001 From: thxnder <36465489+tswwe@users.noreply.github.com> Date: Tue, 22 Feb 2022 21:58:34 +0800 Subject: [PATCH] Create mirror.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增:Actions --- .github/workflows/mirror.yml | 18 ++++++++++++++++++ 1 file changed, 18 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..8c2e392 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,18 @@ +name: Mirror this repo to Gitee + +on: + push: + branches: [ master ] + workflow_dispatch: + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - name: Mirror a repository using SSH + uses: wearerequired/git-mirror-action@master + env: + SSH_PRIVATE_KEY: ${{ secrets.GITEE_PRIVATE_KEY }} + with: + source-repo: "git@github.com:xkinput/xxxk.git" + destination-repo: "git@gitee.com:xkinput/xxxk.git"