Skip to content

Commit

Permalink
fix: 修复 event_id 类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Feb 6, 2024
1 parent 73355e6 commit 82588e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ async def handle_github_action_event():
try:
config = driver.config
# 从环境变量中获取事件信息
event_id = config.github_run_id
# 读取到的 gitub_run_id 会因为 nonebot 配置加载机制转成 int,需要转回 str
event_id = str(config.github_run_id)
event_name = config.github_event_name
github_event_path = Path(config.github_event_path)
# 生成事件
Expand Down

0 comments on commit 82588e8

Please sign in to comment.