mirror of https://gitlab.com/fscarmen/test.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
name: 'GitHub Actions Mirror'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# push:
|
|
# branches:
|
|
# - master
|
|
schedule:
|
|
- cron: '20 20 * * *'
|
|
|
|
jobs:
|
|
mirror_to_gitlab:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 'Checkout'
|
|
uses: actions/checkout@v2
|
|
- name: 'Mirror to gitlab'
|
|
uses: pixta-dev/repository-mirroring-action@v1
|
|
with:
|
|
target_repo_url:
|
|
git@gitlab.com:fscarmen/test.git
|
|
ssh_private_key:
|
|
${{ secrets.PRIVATE_KEY }}
|
|
|
|
mirror_to_bitbucket:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 'Checkout'
|
|
uses: actions/checkout@v2
|
|
- name: 'Mirror to bitbucket'
|
|
uses: pixta-dev/repository-mirroring-action@v1
|
|
with:
|
|
target_repo_url:
|
|
git@bitbucket.org:fscarmen/test.git
|
|
ssh_private_key:
|
|
${{ secrets.PRIVATE_KEY }}
|
|
|
|
# mirror_to_gitee:
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - name: 'Checkout'
|
|
# uses: actions/checkout@v3
|
|
# - name: 'Mirror to gitee'
|
|
# uses: pixta-dev/repository-mirroring-action@v1
|
|
# with:
|
|
# target_repo_url:
|
|
# git@gitee.com:fscarmen/test.git
|
|
# ssh_private_key:
|
|
# ${{ secrets.PRIVATE_KEY }}
|
|
|