Skip to content

Commit

Permalink
Update schedule
Browse files Browse the repository at this point in the history
Signed-off-by: Choonho Son <[email protected]>
  • Loading branch information
Choonho Son committed Nov 1, 2023
1 parent 0ad080c commit e597caa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion src/goldminer/automations/a1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit e597caa

Please sign in to comment.