fes.js/.github/workflows/gitee-mirror.yml

42 lines
1.7 KiB
YAML
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.

# 使用 GitHub Action 来解决手动同步到 Gitee 的问题
# 效果github repo 代码更新之后,会自动同步至 gitee
# 使用到的 GitHub Actionhttps://github.com/Yikun/hub-mirror-action
# This is a basic workflow to help you get started with Actions
name: Gitee Mirror
# 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/WeBankFinTech
dst: gitee/WeBank
# 这里请填写与gitee上公钥匹配的的 ssh private key参见https://gitee.com/profile/sshkeys
# 填写地址https://github.com/WeBankFinTech/fes.js/settings/secrets
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
# 这里请填写 gitee的令牌参见https://gitee.com/profile/personal_access_tokens
# 填写地址https://github.com/WeBankFinTech/fes.js/settings/secrets
dst_token: ${{ secrets.GITEE_TOKEN }}
# 项目同步白名单,可以选择填写多个,以英文逗号分割
static_list: "fes.js"
# 是否强制同步
force_update: true
# 账号类型:对 luban-h5 而言是 user因为是个人项目如果是企业项目请填写 org因为是组织下的项目
account_type: org
clone_style: ssh