Ventoy/.github/workflows/sync2gitee.yml

26 lines
685 B
YAML
Raw Normal View History

2021-01-26 10:05:37 -05:00
name: Mirror GitHub to Gitee
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
2021-01-28 21:14:17 -05:00
branches: [ master ]
2021-01-26 10:05:37 -05:00
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run:
name: Sync-GitHub-to-Gitee
2021-07-25 08:00:23 -04:00
if: ${{ github.repository_owner == 'ventoy' }}
2021-01-26 10:05:37 -05:00
runs-on: ubuntu-latest
steps:
- name: Mirror the Github repos to Gitee.
uses: Yikun/hub-mirror-action@master
with:
src: github/ventoy
dst: gitee/LongPanda
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
static_list: "Ventoy"
force_update: true