Browse Source

chore: update schedule time

mrabit 2 năm trước cách đây
mục cha
commit
77fdfa9c2d
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      .github/workflows/workflow.yml
  2. 1 1
      index.js

+ 1 - 1
.github/workflows/workflow.yml

@@ -6,7 +6,7 @@ on:
     branches:
       - master
   schedule:
-    - cron: '*/20 * * * *' # 每20分钟执行一次
+    - cron: '*/20 9-20 * * *' # 每20分钟执行一次
 
 env: # 设置环境变量
   TZ: Asia/Shanghai # 时区(设置时区可使页面中的`最近更新时间`使用时区时间)

+ 1 - 1
index.js

@@ -2,4 +2,4 @@ const schedule = require('node-schedule')
 const api = require('./api')
 
 api.init()
-schedule.scheduleJob('00 */20 * * * *', api.init) // 每20分钟执行一次
+schedule.scheduleJob('00 */20 9-20 * * *', api.init) // 每20分钟执行一次