Create main.yml

This commit is contained in:
rkygogo 2022-06-23 17:26:33 +08:00 committed by GitHub
parent c588cd51b4
commit 6fdff044fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

31
.github/workflows/main.yml vendored Normal file
View File

@ -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 }}