Skip to content

Commit

Permalink
ci: 更新 GitHub Actions 工作流配置
Browse files Browse the repository at this point in the history
- 在工作流触发路径中添加 bot_check.yml 文件
- 优化 Install playwright 步骤的条件判断
  • Loading branch information
molanp committed Dec 15, 2024
1 parent 9b2ebfe commit 9e09e21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/bot_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
paths:
- zhenxun/**
- tests/**
- .github/workflows/bot_check.yml
- bot.py
pull_request:
branches: ["main"]
paths:
- zhenxun/**
- tests/**
- .github/workflows/bot_check.yml
- bot.py

jobs:
Expand Down Expand Up @@ -58,7 +60,7 @@ jobs:
poetry install --no-root
- name: Install playwright
if: steps.cache-playwright.outputs.cache-hit != 'true'
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: |
apt-get update
apt-get install -y libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav flite x264 libx264-dev
Expand Down
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
driver.register_adapter(OneBotV11Adapter)
driver.register_adapter(KaiheilaAdapter)
driver.register_adapter(DoDoAdapter)
# driver.register_adapter(DiscordAdapter)
# driver.register_adapter(DiscordAdapter)

from zhenxun.services.db_context import disconnect, init

Expand Down

0 comments on commit 9e09e21

Please sign in to comment.