From e597caa8e7575f0f8d8da21ed3f5ac0c954e5b45 Mon Sep 17 00:00:00 2001 From: Choonho Son Date: Wed, 1 Nov 2023 11:06:27 +0900 Subject: [PATCH] Update schedule Signed-off-by: Choonho Son --- .github/workflows/test.yml | 5 ++++- src/goldminer/automations/a1.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea01de5..335dd9a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,10 @@ name: Main trigger on: schedule: - - cron: '00 22 * * *' # AM 07:00, KST + - cron: + '00 00 * * *' # AM 09:00, KST + '00 04 * * *' # AM 13:00, KST + workflow_dispatch: inputs: persona: diff --git a/src/goldminer/automations/a1.py b/src/goldminer/automations/a1.py index 2c3820b..9f478f7 100644 --- a/src/goldminer/automations/a1.py +++ b/src/goldminer/automations/a1.py @@ -2,9 +2,10 @@ # Write to Tistory from datetime import datetime +from pytz import timezone from goldminer.tasks.naver import search_news -today = datetime.now().strftime("%Y-%m-%d") +today = datetime.now(timezone('Asia/Seoul')).strftime("%Y-%m-%d %H") result = search_news("국내증시", 5) content = ""