Skip to content

Commit

Permalink
Create mirror.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 authored May 26, 2020
1 parent 08607db commit 9a45c08
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This is a basic workflow to help you get started with Actions

name: gitee-mirror<sync2gitee.com>

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- '*'

jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Mirror the Github organization repos to Gitee.
uses: Yikun/hub-mirror-action@master
with:
src: github/ly525
dst: gitee/ly525
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
static_list: "luban-h5"
force_update: true
account_type: user
clone_style: ssh

0 comments on commit 9a45c08

Please sign in to comment.