File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -58,24 +58,33 @@ jobs:
58
58
- name : Install Poetry
59
59
if : ${{ !startsWith(github.event_name, 'pull_request') }}
60
60
run : pipx install poetry
61
+
61
62
- name : Setup Python
62
63
uses : actions/setup-python@v4
63
64
with :
64
65
python-version : " 3.10"
66
+
65
67
- name : Test Plugin
66
68
id : plugin-test
67
69
run : |
68
- curl -sSL https://github.com/nonebot/nonebot2-publish-bot/releases/latest/download/plugin_test.py -o plugin_test.py
69
- python plugin_test.py
70
+ curl -sSL https://github.com/nonebot/nonebot2-publish-bot/releases/latest/download/plugin_test.py | python -
70
71
publish_bot :
71
72
runs-on : ubuntu-latest
72
73
name : nonebot2 publish bot
73
74
needs : plugin_test
74
75
steps :
76
+ - name : Generate token
77
+ id : generate-token
78
+ uses : tibdex/github-app-token@v1
79
+ with :
80
+ app_id : ${{ secrets.APP_ID }}
81
+ private_key : ${{ secrets.APP_KEY }}
82
+
75
83
- name : Checkout Code
76
84
uses : actions/checkout@v3
77
85
with :
78
- token : ${{ secrets.GH_TOKEN }}
86
+ token : ${{ steps.generate-token.outputs.token }}
87
+
79
88
- name : NoneBot2 Publish Bot
80
89
uses : docker://ghcr.io/nonebot/nonebot2-publish-bot:latest
81
90
with :
You can’t perform that action at this time.
0 commit comments