Skip to content

Commit 7f8b5e9

Browse files
authored
👷 CI: 使用最新版的 NoneFlow (#3127)
1 parent 83552d6 commit 7f8b5e9

File tree

5 files changed

+742
-816
lines changed

5 files changed

+742
-816
lines changed

.github/workflows/noneflow.yml

Lines changed: 6 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ concurrency:
1515
cancel-in-progress: false
1616

1717
jobs:
18-
check:
18+
noneflow:
1919
runs-on: ubuntu-latest
20-
name: check
20+
name: noneflow
2121
# do not run on forked PRs, do not run on not related issues, do not run on pr comments
2222
if: |
2323
!(
@@ -36,70 +36,6 @@ jobs:
3636
github.event_name == 'issue_comment' && github.event.issue.pull_request
3737
)
3838
)
39-
steps:
40-
- run: echo "Check passed"
41-
reaction:
42-
runs-on: ubuntu-latest
43-
name: reaction
44-
needs: check
45-
if: |
46-
(
47-
github.event_name == 'issue_comment' &&
48-
github.event.action == 'created'
49-
) ||
50-
(
51-
github.event_name == 'issues' &&
52-
github.event.action == 'opened'
53-
)
54-
steps:
55-
- name: Generate token
56-
id: generate-token
57-
uses: tibdex/github-app-token@v2
58-
with:
59-
app_id: ${{ secrets.APP_ID }}
60-
private_key: ${{ secrets.APP_KEY }}
61-
62-
- name: Reaction on issue
63-
if: github.event_name == 'issues'
64-
run: |
65-
gh api --method POST /repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/reactions -f "content=rocket"
66-
env:
67-
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
68-
69-
- name: Reaction on issue comment
70-
if: github.event_name == 'issue_comment'
71-
run: |
72-
gh api --method POST /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions -f "content=rocket"
73-
env:
74-
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
75-
plugin_test:
76-
runs-on: ubuntu-latest
77-
name: nonebot2 plugin test
78-
needs: check
79-
permissions:
80-
issues: read
81-
outputs:
82-
result: ${{ steps.plugin-test.outputs.RESULT }}
83-
output: ${{ steps.plugin-test.outputs.OUTPUT }}
84-
metadata: ${{ steps.plugin-test.outputs.METADATA }}
85-
steps:
86-
- name: Install Poetry
87-
if: ${{ !startsWith(github.event_name, 'pull_request') }}
88-
run: pipx install poetry
89-
90-
- name: Setup Python
91-
uses: actions/setup-python@v5
92-
with:
93-
python-version: "3.x"
94-
95-
- name: Test Plugin
96-
id: plugin-test
97-
run: |
98-
curl -sSL https://github.com/nonebot/noneflow/releases/latest/download/plugin_test.py | python -
99-
noneflow:
100-
runs-on: ubuntu-latest
101-
name: noneflow
102-
needs: plugin_test
10339
steps:
10440
- name: Generate token
10541
id: generate-token
@@ -125,14 +61,12 @@ jobs:
12561
config: >
12662
{
12763
"base": "master",
128-
"plugin_path": "assets/plugins.json",
129-
"bot_path": "assets/bots.json",
130-
"adapter_path": "assets/adapters.json"
64+
"plugin_path": "assets/plugins.json5",
65+
"bot_path": "assets/bots.json5",
66+
"adapter_path": "assets/adapters.json5",
67+
"registry_repository": "nonebot/registry"
13168
}
13269
env:
133-
PLUGIN_TEST_RESULT: ${{ needs.plugin_test.outputs.result }}
134-
PLUGIN_TEST_OUTPUT: ${{ needs.plugin_test.outputs.output }}
135-
PLUGIN_TEST_METADATA: ${{ needs.plugin_test.outputs.metadata }}
13670
APP_ID: ${{ secrets.APP_ID }}
13771
PRIVATE_KEY: ${{ secrets.APP_KEY }}
13872
PRE_COMMIT_HOME: /github/workspace/.cache/.pre-commit
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"project_link": "nonebot-adapter-onebot",
55
"name": "OneBot V11",
66
"desc": "OneBot V11 协议",
7-
"author": "yanyongyu",
7+
"author_id": 42488585,
88
"homepage": "https://onebot.adapters.nonebot.dev/",
99
"tags": [],
1010
"is_official": true
@@ -14,7 +14,7 @@
1414
"project_link": "nonebot-adapter-ding",
1515
"name": "钉钉",
1616
"desc": "钉钉协议",
17-
"author": "Artin",
17+
"author_id": 1184028,
1818
"homepage": "https://github.com/nonebot/adapter-ding",
1919
"tags": [],
2020
"is_official": true
@@ -24,7 +24,7 @@
2424
"project_link": "nonebot-adapter-feishu",
2525
"name": "飞书",
2626
"desc": "飞书协议",
27-
"author": "StarHeartHunt",
27+
"author_id": 14922941,
2828
"homepage": "https://github.com/nonebot/adapter-feishu",
2929
"tags": [],
3030
"is_official": true
@@ -34,7 +34,7 @@
3434
"project_link": "nonebot-adapter-telegram",
3535
"name": "Telegram",
3636
"desc": "Telegram 协议",
37-
"author": "j1g5awi",
37+
"author_id": 50312681,
3838
"homepage": "https://github.com/nonebot/adapter-telegram",
3939
"tags": [],
4040
"is_official": true
@@ -44,7 +44,7 @@
4444
"project_link": "nonebot-adapter-qq",
4545
"name": "QQ",
4646
"desc": "QQ 官方机器人",
47-
"author": "yanyongyu",
47+
"author_id": 42488585,
4848
"homepage": "https://github.com/nonebot/adapter-qq",
4949
"tags": [],
5050
"is_official": true
@@ -54,7 +54,7 @@
5454
"project_link": "nonebot-adapter-kaiheila",
5555
"name": "开黑啦",
5656
"desc": "开黑啦协议适配",
57-
"author": "Tian-que",
57+
"author_id": 37477320,
5858
"homepage": "https://github.com/Tian-que/nonebot-adapter-kaiheila",
5959
"tags": [],
6060
"is_official": false
@@ -64,7 +64,7 @@
6464
"project_link": "nonebot-adapter-mirai",
6565
"name": "Mirai",
6666
"desc": "mirai-api-http v2 协议适配",
67-
"author": "RF-Tar-Railt",
67+
"author_id": 42648639,
6868
"homepage": "https://github.com/nonebot/adapter-mirai",
6969
"tags": [],
7070
"is_official": true
@@ -74,7 +74,7 @@
7474
"project_link": "nonebot-adapter-onebot",
7575
"name": "OneBot V12",
7676
"desc": "OneBot V12 协议",
77-
"author": "yanyongyu",
77+
"author_id": 42488585,
7878
"homepage": "https://onebot.adapters.nonebot.dev/",
7979
"tags": [],
8080
"is_official": true
@@ -84,7 +84,7 @@
8484
"project_link": "nonebot-adapter-console",
8585
"name": "Console",
8686
"desc": "基于终端的交互式适配器",
87-
"author": "Melodyknit",
87+
"author_id": 50488999,
8888
"homepage": "https://github.com/nonebot/adapter-console",
8989
"tags": [],
9090
"is_official": true
@@ -94,7 +94,7 @@
9494
"project_link": "nonebot-adapter-github",
9595
"name": "GitHub",
9696
"desc": "GitHub APP & OAuth APP integration",
97-
"author": "yanyongyu",
97+
"author_id": 42488585,
9898
"homepage": "https://github.com/nonebot/adapter-github",
9999
"tags": [],
100100
"is_official": true
@@ -104,7 +104,7 @@
104104
"project_link": "nonebot-adapter-ntchat",
105105
"name": "Ntchat",
106106
"desc": "pc hook的微信客户端适配",
107-
"author": "JustUndertaker",
107+
"author_id": 37363867,
108108
"homepage": "https://github.com/JustUndertaker/adapter-ntchat",
109109
"tags": [
110110
{
@@ -119,7 +119,7 @@
119119
"project_link": "nonebot-adapter-minecraft",
120120
"name": "Minecraft",
121121
"desc": "MineCraft通信适配,支持Rcon",
122-
"author": "17TheWord",
122+
"author_id": 54731914,
123123
"homepage": "https://github.com/17TheWord/nonebot-adapter-minecraft",
124124
"tags": [
125125
{
@@ -134,7 +134,7 @@
134134
"project_link": "nonebot-adapter-bilibili",
135135
"name": "BilibiliLive",
136136
"desc": "b站直播间ws协议",
137-
"author": "wwweww",
137+
"author_id": 39620657,
138138
"homepage": "https://github.com/wwweww/adapter-bilibili",
139139
"tags": [],
140140
"is_official": false
@@ -144,7 +144,7 @@
144144
"project_link": "nonebot-adapter-walleq",
145145
"name": "Walle-Q",
146146
"desc": "内置 QQ 协议实现",
147-
"author": "abrahum",
147+
"author_id": 18395948,
148148
"homepage": "https://github.com/onebot-walle/nonebot_adapter_walleq",
149149
"tags": [
150150
{
@@ -159,7 +159,7 @@
159159
"project_link": "nonebot-adapter-villa",
160160
"name": "大别野",
161161
"desc": "米游社大别野官方Bot适配",
162-
"author": "CMHopeSunshine",
162+
"author_id": 63870437,
163163
"homepage": "https://github.com/CMHopeSunshine/nonebot-adapter-villa",
164164
"tags": [
165165
{
@@ -174,7 +174,7 @@
174174
"project_link": "nonebot-adapter-red",
175175
"name": "RedProtocol",
176176
"desc": "QQNT RedProtocol 适配",
177-
"author": "zhaomaoniu",
177+
"author_id": 55650833,
178178
"homepage": "https://github.com/nonebot/adapter-red",
179179
"tags": [],
180180
"is_official": true
@@ -184,7 +184,7 @@
184184
"project_link": "nonebot-adapter-discord",
185185
"name": "Discord",
186186
"desc": "Discord 官方 Bot 协议适配",
187-
"author": "CMHopeSunshine",
187+
"author_id": 63870437,
188188
"homepage": "https://github.com/nonebot/adapter-discord",
189189
"tags": [],
190190
"is_official": true
@@ -194,7 +194,7 @@
194194
"project_link": "nonebot-adapter-satori",
195195
"name": "Satori",
196196
"desc": "Satori 协议适配器",
197-
"author": "RF-Tar-Railt",
197+
"author_id": 42648639,
198198
"homepage": "https://github.com/nonebot/adapter-satori",
199199
"tags": [
200200
{
@@ -209,7 +209,7 @@
209209
"project_link": "nonebot-adapter-dodo",
210210
"name": "DoDo",
211211
"desc": "DoDo Bot 协议适配器",
212-
"author": "CMHopeSunshine",
212+
"author_id": 63870437,
213213
"homepage": "https://github.com/nonebot/adapter-dodo",
214214
"tags": [],
215215
"is_official": true
@@ -219,7 +219,7 @@
219219
"project_link": "nonebot-adapter-rocketchat",
220220
"name": "RocketChat",
221221
"desc": "RocketChat adapter for nonebot2",
222-
"author": "IllTamer",
222+
"author_id": 78360471,
223223
"homepage": "https://github.com/IUnlimit/nonebot-adapter-rocketchat",
224224
"tags": [],
225225
"is_official": false
@@ -229,7 +229,7 @@
229229
"project_link": "nonebot-adapter-kritor",
230230
"name": "Kritor",
231231
"desc": "Kritor 协议适配",
232-
"author": "RF-Tar-Railt",
232+
"author_id": 42648639,
233233
"homepage": "https://github.com/nonebot/adapter-kritor",
234234
"tags": [
235235
{
@@ -244,9 +244,9 @@
244244
"project_link": "nonebot-adapter-tailchat",
245245
"name": "Tailchat",
246246
"desc": "Tailchat 适配器",
247-
"author": "eya46",
247+
"author_id": 61458340,
248248
"homepage": "https://github.com/eya46/nonebot-adapter-tailchat",
249249
"tags": [],
250250
"is_official": false
251-
}
251+
},
252252
]

0 commit comments

Comments
 (0)