Skip to content

Commit 0c22a73

Browse files
committed
docs: 同步最新的使用方法
1 parent b6ae362 commit 0c22a73

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,33 @@ jobs:
5858
- name: Install Poetry
5959
if: ${{ !startsWith(github.event_name, 'pull_request') }}
6060
run: pipx install poetry
61+
6162
- name: Setup Python
6263
uses: actions/setup-python@v4
6364
with:
6465
python-version: "3.10"
66+
6567
- name: Test Plugin
6668
id: plugin-test
6769
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 -
7071
publish_bot:
7172
runs-on: ubuntu-latest
7273
name: nonebot2 publish bot
7374
needs: plugin_test
7475
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+
7583
- name: Checkout Code
7684
uses: actions/checkout@v3
7785
with:
78-
token: ${{ secrets.GH_TOKEN }}
86+
token: ${{ steps.generate-token.outputs.token }}
87+
7988
- name: NoneBot2 Publish Bot
8089
uses: docker://ghcr.io/nonebot/nonebot2-publish-bot:latest
8190
with:

0 commit comments

Comments
 (0)