Files
clone_scripts_clone/.github/workflows/gitee
2021-03-27 13:30:40 +08:00

29 lines
780 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: sync to gitee
on:
schedule:
- cron: '1 0,15 * * *'
workflow_dispatch:
watch:
types: started
push:
branches: [ master ]
repository_dispatch:
types: sync-LXK9301-scripts
jobs:
repo-sync:
env:
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} # 我自己同步到gitee使用其他人可忽略
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: sync github -> gitee
uses: Yikun/hub-mirror-action@master
with:
src: github/lan-tianxiang
dst: gitee/highdimen
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}