File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ name: Daily Check-in
22
33on :
44 schedule :
5+ # - cron: '0 1 * * *' # 每天1点 UTC 时间执行
56 - cron : ' 0 */12 * * *' # 每12小时执行一次
7+
68 workflow_dispatch :
79
810jobs :
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def wrapper(*args, **kwargs):
3535PASSWORD = os .environ .get ("PASSWORD" )
3636
3737HOME_URL = "https://linux.do/"
38+ LOGIN_URL = "https://linux.do/login"
3839
3940
4041class LinuxDoBrowser :
@@ -47,7 +48,8 @@ def __init__(self) -> None:
4748
4849 def login (self ):
4950 logger .info ("开始登录" )
50- self .page .click (".login-button .d-button-label" )
51+ # self.page.click(".login-button .d-button-label")
52+ self .page .goto (LOGIN_URL )
5153 time .sleep (2 )
5254 self .page .fill ("#login-account-name" , USERNAME )
5355 time .sleep (2 )
You can’t perform that action at this time.
0 commit comments