This commit is contained in:
chendelin1982 2022-02-14 14:50:59 +08:00
parent 09c1b6fcfb
commit 373a976b4b
8 changed files with 180 additions and 89 deletions

35
.github/ISSUE_TEMPLATE/oss_ip.md vendored Normal file
View file

@ -0,0 +1,35 @@
---
name: 开源软件知识产权-SoftwareName
about: 主动联系开源软件供应商获得商标合理合规的使用许可并确认License合规
title: '开源软件知识产权-SoftwareName'
labels: ''
assignees: ''
---
**概要**
SoftwareName 商标联系事宜
**状态**
- [ ] 已发邮件/工单
- [ ] 总联系不上
- [ ] 沟通中
- [ ] 沟通中断(需重新发起)
- [ ] 需申请 Partner
- [ ] 对方拒绝授权
- [ ] 获得书面同意
- [ ] 获得授权书
- [ ] 关系维护(条款变更/关怀/其他)
**跟进**
- [ ] 联系人[归档](https://www.hubspot.com/)
- [ ] 结果[归档](https://github.com/websoft9op/vendor/tree/main/list)
- [ ] 修正[知识库](https://websoft9.yuque.com/inc/legal/hl14s6)
- [ ] 通知商品管理员
**备注**
其他重要的信息

43
.github/ISSUE_TEMPLATE/outsourcer.md vendored Normal file
View file

@ -0,0 +1,43 @@
---
name: 外包商-SoftwareName
about: 技术和创意外包商发展
title: '外包商-SoftwareName'
labels: ''
assignees: ''
---
**概要**
SoftwareName 合作伙伴资格
**伙伴类型**
- [ ] 代理分销伙伴(有代理价格或返点奖励)
- [ ] 技术集成伙伴
- [ ] 咨询与培训伙伴
- [ ] 其他
**状态**
- [ ] 已发邮件/工单
- [ ] 总联系不上
- [ ] 沟通中
- [ ] 沟通中断(需重新发起)
- [ ] 申请被拒绝
- [ ] 申请通过
- [ ] 关系维护(条款变更/关怀/其他)
**深度合作**
- [ ] 多云分发服务(镜像免费)
- [ ] 多云分发服务(镜像收费)
**跟进**
- [ ] 联系人[归档](https://www.hubspot.com/)
- [ ] 结果[归档](https://github.com/websoft9op/vendor/tree/main/list)
**备注**
其他重要的信息

43
.github/ISSUE_TEMPLATE/partner.md vendored Normal file
View file

@ -0,0 +1,43 @@
---
name: 合作伙伴资格-SoftwareName
about: 成为商业软件或开源软件企业版的合作伙伴
title: '合作伙伴资格-SoftwareName'
labels: ''
assignees: ''
---
**概要**
SoftwareName 合作伙伴资格
**伙伴类型**
- [ ] 代理分销伙伴(有代理价格或返点奖励)
- [ ] 技术集成伙伴
- [ ] 咨询与培训伙伴
- [ ] 其他
**状态**
- [ ] 已发邮件/工单
- [ ] 总联系不上
- [ ] 沟通中
- [ ] 沟通中断(需重新发起)
- [ ] 申请被拒绝
- [ ] 申请通过
- [ ] 关系维护(条款变更/关怀/其他)
**深度合作**
- [ ] 多云分发服务(镜像免费)
- [ ] 多云分发服务(镜像收费)
**跟进**
- [ ] 联系人[归档](https://www.hubspot.com/)
- [ ] 结果[归档](https://github.com/websoft9op/vendor/tree/main/list)
**备注**
其他重要的信息

25
.github/workflows/create.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Create new vendor folder
on:
push:
branches: [ main ]
paths:
- 'apps/add'
jobs:
build:
name: Create vendor
runs-on: ubuntu-latest
env:
TAGS: latest
steps:
- uses: actions/checkout@v2
name: Check out code
- name: Creating
run: |
cd apps
cd list && python3 create.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: new vendor

View file

@ -1,33 +0,0 @@
name: Docs Build and Upload
on:
push:
paths: docs/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: npm install vuepress
run: |
sudo npm install -g vuepress
- name: vuepress build
run: |
cd docs
sudo vuepress build
env:
CI: true
# to azure blob
- name: debug
run: ls
- uses: bacongobbler/azure-blob-storage-upload@v1.2.0
with:
source_dir: docs/html
container_name: $web
connection_string: ${{ secrets.Azure_blob }}
extra_args: '--destination-path docs'
sync: false

View file

@ -1,56 +0,0 @@
name: Mirror to Gitee Repo
# on: [ push, delete, create ]
on:
push:
branches:
- main
jobs:
git-mirror:
runs-on: ubuntu-latest
steps:
- name: Configure Private Key
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_PRIVATE_KEY }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "StrictHostKeyChecking no" >> ~/.ssh/config
- name: Push Mirror
env:
# SOURCE_REPO: 'https://github.com/mgithubTestOrg/giteeMirror.git'
SOURCE_REPO: 'https://github.com/${{ github.repository }}.git'
# DESTINATION_REPO: 'git@gitee.com:mgithubTestOrg/giteeMirror.git'
# DESTINATION_REPO: 'git@gitee.com:${{ github.repository }}.git'
DESTINATION_REPO: 'git@gitee.com:websoft9/${{ github.event.repository.name }}.git'
BASE_REPO: 'https://github.com/${{ github.repository }}'
run: |
git clone "$SOURCE_REPO" && cd `basename "$BASE_REPO"`
git config --global user.name "${{ github.actor }}"
git config --global user.email "xxx@websoft9.com"
git remote set-url --push origin "$DESTINATION_REPO"
git push origin main --force
git checkout dev
if [ -f "requirements.yml" ];then
sed -i 's/github/gitee/g' requirements.yml
git add requirements.yml
git commit -m "Make requirements.yml compatible with gitee"
fi
git push origin dev --force
git checkout main
git fetch -p origin
git for-each-ref --format 'delete %(refname)' refs/pull | git update-ref --stdin
git push origin main --force
if [ -f "requirements.yml" ];then
sed -i 's/github/gitee/g' requirements.yml
git add requirements.yml
git commit -m "Make requirements.yml compatible with gitee"
fi
git push origin main --force

1
apps/add Normal file
View file

@ -0,0 +1 @@
sscms

33
apps/create.py Normal file
View file

@ -0,0 +1,33 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
#coding: utf-8
import os, io, sys, platform, shutil, urllib3, time, json
def ReadLists(filename):
if os.path.getsize(filename) == 0:
print("\n清单中没有项目!")
sys.exit()
else:
with open("./"+filename,mode='r',newline='') as f:
templists=list(f)
rlist=[]
for templist in templists:
rlist.append(templist.replace('\n',''))
return rlist
mylists=ReadLists("add")
# 批量处理创建项目文件夹issue
for mylist in mylists:
print("处理 "+mylist+" ...\n")
path=os.getcwd()+"/"+mylist+"/README.md"
print(path)
print(os.path.exists(path))
if not os.path.exists(path):
os.system("git clone --depth https://github.com/Websoft9/ansible-template "+ mylist)
os.system("cd "+ mylist +" && rm -rf .git .github docs")
os.system("echo '' > lists")
print("\n执行完成,并清空列表")