Skip to content

Commit

Permalink
feat: automatic generate README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adproqwq committed Feb 2, 2024
1 parent 998e5ef commit a612865
Show file tree
Hide file tree
Showing 156 changed files with 92,795 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflow/generate_readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: generate_readme

on:
workflow_dispatch:
push:
branches:
- 'main'

jobs:
generate_readme:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0

- uses: actions/[email protected]

- id: version
run: node script/update.js

- name: Git commit
id: commit
run: |
git config --local user.email github-actions[bot]@users.noreply.github.com
git config --local user.name github-actions[bot]
git config --global core.autocrlf true
git config --global core.safecrlf false
git status
git add .
git commit -a -m "doc: update list.json"
continue-on-error: true

- name: Git push
if: ${{ steps.commit.outcome == 'success' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
24 changes: 24 additions & 0 deletions .github/workflow/pull_request_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: pull_request_check

on:
pull_request:
branches:
- main

jobs:
check:
if: github.repository == 'Adpro-Team/GKD_thirdParty_subscription_list'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- run: npm ci

- name: Ensure Files Changed
uses: danieljimeneznz/[email protected]
with:
require-changes-to: |
list.json
prevent-changes-to: |
*.md
token: ${{ secret.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 如何让本项目收录你的订阅

很高兴有更多人搭建了第三方的订阅,丰富GKD社区规则。

需要: 良好的网络(能登录、访问Github)

## 开始

1. Fork 本项目

2. ****修改其中的list.json,在最外层大括号内的末尾添加形如下方的文字:

```json
{
"name": "订阅名字,与你的订阅文件里的name属性相同",
"subUrl": "导入订阅的链接",
"repo": "Github仓库名,形如:用户名/仓库名。如果没有,请保持为空字符串", //仅支持Github仓库!
"branch": "订阅仓库中的发布分支,若repo字段留空,本字段同样留空"
}
```
然后提交

3. 向本项目发起PR(Pull Request)
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
# GKD_thirdParty_subscription_list
The list of third party subscription of GKD
15 changes: 15 additions & 0 deletions Template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# @Adpro-Team/GKD_thirdParty_subscription_list

Adpro-Team 整理的GKD第三方订阅列表

如何添加你自己的订阅 -> [CONTRIBUTING.md](./CONTRIBUTING.md)

---

--thirdPartySubList--

---

## 感谢以下第三方维护者

![img](https://contrib.rocks/image?repo=Adpro-Team/GKD_thirdParty_subscription_list)
8 changes: 8 additions & 0 deletions list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"name": "Adpro的GKD订阅",
"subUrl": "https://raw.gitmirror.com/Adpro-Team/GKD_subscription/main/dist/Adpro_gkd.json5",
"repo": "Adpro-Team/GKD_subscription",
"branch": "main"
}
]
22 changes: 22 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions node_modules/@types/node/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions node_modules/@types/node/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a612865

Please sign in to comment.