mirror of
https://github.com/lan-tianxiang/clone_scripts.git
synced 2026-02-04 22:53:12 +08:00
Update gitee.yml
This commit is contained in:
30
.github/workflows/gitee.yml
vendored
30
.github/workflows/gitee.yml
vendored
@@ -1 +1,31 @@
|
||||
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
|
||||
if: env.dst_key
|
||||
with:
|
||||
src: github/lan-tianxiang
|
||||
dst: gitee/highdimen
|
||||
static_list: "clone_scripts"
|
||||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
|
||||
dst_token: ${{ secrets.GITEE_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user