From 6fdff044fc0565a4922da03ea8294c4fc5ec83b9 Mon Sep 17 00:00:00 2001 From: rkygogo <107276912+rkygogo@users.noreply.github.com> Date: Thu, 23 Jun 2022 17:26:33 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..986f05c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: 'GitHub Actions Mirror' + +on: + workflow_dispatch: + +jobs: + + mirror_to_gitlab: + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v3 + - name: 'Mirror to gitlab' + uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: + git@gitlab.com:rwkgyg/acme-script.git + ssh_private_key: + ${{ secrets.private_key }} + mirror_to_bitbucket: + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v3 + - name: 'Mirror to bitbucket' + uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: + git@bitbucket.com:rwkgyg/acme-script.git + ssh_private_key: + ${{ secrets.private_key }}