md/.github/workflows/sync.yml

19 lines
417 B
YAML
Raw Normal View History

2020-04-01 09:36:24 +08:00
name: Sync
2021-02-28 19:37:51 +08:00
on:
push:
branches: [main]
2020-04-01 09:36:24 +08:00
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'doocs/md'
2020-04-01 09:36:24 +08:00
steps:
2021-02-26 10:47:40 +08:00
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
2020-04-01 09:36:24 +08:00
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
2021-02-26 10:47:40 +08:00
with:
2020-11-23 09:38:30 +08:00
source-repo: git@github.com:doocs/md.git
destination-repo: git@gitee.com:Doocs/md.git