Skip to content

Commit d148606

Browse files
committed
modify: github action 수정 v3
1 parent 091f76c commit d148606

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/worker_main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ jobs:
3636
PERIOD_MIN: ${{ secrets.PERIOD_MIN }}
3737
run: |
3838
cd ./worker
39+
mkdir logs
3940
python main.py

worker/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
load_dotenv()
1212
DB_URL = os.getenv("DB_URL")
1313
PERIOD_MIN = int(os.getenv("PERIOD_MIN"))
14+
WORKER_ENV = os.getenv("WORKER_ENV")
1415

1516
if not DB_URL:
1617
raise Exception("There is no DB_URL value in env value")

worker/token_refresh.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import asyncio
22
import os
3-
import sys
43

54
from dotenv import load_dotenv
65
from logger import TOKEN_REFRESH_LOGGER as log
@@ -9,8 +8,9 @@
98
from src.modules.velog_apis import fetch_posts, get_cookie_from_one_stats_api
109

1110
load_dotenv()
12-
DB_URL = os.getenv("DB_URL", sys.argv[0])
13-
PERIOD_MIN = int(os.getenv("PERIOD_MIN", sys.argv[1]))
11+
DB_URL = os.getenv("DB_URL")
12+
PERIOD_MIN = int(os.getenv("PERIOD_MIN"))
13+
WORKER_ENV = os.getenv("WORKER_ENV")
1414

1515
if not DB_URL:
1616
raise Exception("There is no DB_URL value in env value")

0 commit comments

Comments
 (0)