Skip to content

Commit

Permalink
auto-sync to gitee.com
Browse files Browse the repository at this point in the history
  • Loading branch information
qtwrk authored Nov 2, 2021
1 parent 0b7e2bd commit 3416ed6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/sync2gitee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: sync2gitee
on: [push, pull_request,create,delete]
jobs:
repo-sync:
env:
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
gitee_user: ${{ secrets.GITEE_USER }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: sync github -> gitee
uses: Yikun/hub-mirror-action@master
if: env.dst_key && env.dst_token && env.gitee_user
with:
src: 'github/${{ github.repository_owner }}'
dst: 'gitee/${{ secrets.GITEE_USER }}'
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
static_list: ${{ github.event.repository.name }}

0 comments on commit 3416ed6

Please sign in to comment.