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 = ""