From 4824000aee4f27fa1a937436d075a02769454e90 Mon Sep 17 00:00:00 2001 From: yaozm Date: Fri, 12 Apr 2024 17:46:27 +0800 Subject: [PATCH] feat(workflows): Add mirror workflow for repository mirroring - Added a new workflow file `mirror.yml` for mirroring the repository - Added job `to_gitlab` with steps for mirroring to GitLab --- .github/workflows/mirror.yml | 17 +++++++++++++++++ 1 file changed, 17 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 00000000000..d58d7bf477f --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,17 @@ +name: mirror + +on: [ push, delete ] + +jobs: + to_gitlab: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: + git@gitlab.com:yzmguanguan/favorite-link.git + ssh_private_key: + ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}