Skip to content

Commit

Permalink
Create sync2gitee.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
taksssss authored Sep 5, 2024
1 parent 6e06e6b commit d41702f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sync2gitee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: sync2gitee

on:
push:
workflow_dispatch:

jobs:
run:
name: Sync GitHub to Gitee
runs-on: ubuntu-latest
steps:

- name: Get current repository name
id: info
uses: actions/[email protected]
with:
github-token: ${{secrets.GH_TOKEN}}
result-encoding: string
script: |
return context.repo.repo;
- name: Mirror the GitHub repos to Gitee
uses: Yikun/hub-mirror-action@master
with:
src: github/TakcC
dst: gitee/takcheung
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
static_list: '${{ steps.info.outputs.result }}'
account_type: user
force_update: true

0 comments on commit d41702f

Please sign in to comment.