From 7c880497edb494d5684f7d3253f1fd79a659a37e Mon Sep 17 00:00:00 2001 From: AkashiCoin Date: Tue, 27 Aug 2024 23:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E6=9B=B4=E5=A5=BD=E7=9A=84Bot?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bot_check.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/bot_check.yml b/.github/workflows/bot_check.yml index a92916a9..2694db18 100644 --- a/.github/workflows/bot_check.yml +++ b/.github/workflows/bot_check.yml @@ -48,4 +48,9 @@ jobs: id: bot_check_run run: | mv scripts/bot_check.py bot_check.py + sed -i "s|^.*\?DB_URL.*|DB_URL=\"${{ env.DB_URL }}\"|g" .env.dev + sed -i "s/^.*\?LOG_LEVEL.*/LOG_LEVEL=${{ env.LOG_LEVEL }}/g" .env.dev poetry run python3 bot_check.py + env: + DB_URL: "sqlite://:memory:" + LOG_LEVEL: DEBUG