浏览代码

Merge pull request #794 from nightscout/bb_schedule

Shift GitHub to check for updates every Sunday and build 2nd Saturday of each month
Mike Plante 7 月之前
父节点
当前提交
299df49b6f
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      .github/workflows/build_trio.yml

+ 4 - 4
.github/workflows/build_trio.yml

@@ -7,9 +7,9 @@ on:
   #push:
 
   schedule:
-    # avoid starting an action at xx:00 when GitHub resources are more likely to be impacted
-    - cron: "43 8 * * 3" # Checks for updates at 08:43 UTC every Wednesday
-    - cron: "43 6 1 * *" # Builds the app on the 1st of every month at 06:43 UTC
+    # avoid starting an action at times when GitHub resources are more likely to be impacted
+    - cron: "43 8 * * 0" # Checks for updates at 08:43 UTC every Sunday
+    - cron: "43 6 8-14 * 6" # Builds the app on the second Saturday of each month at 06:43 UTC
 
 env:
   UPSTREAM_REPO: nightscout/Trio
@@ -213,7 +213,7 @@ jobs:
       | # runs if started manually, or if sync schedule is set and enabled and scheduled on the first Saturday each month, or if sync schedule is set and enabled and new commits were found
       github.event_name == 'workflow_dispatch' ||
       (needs.check_alive_and_permissions.outputs.WORKFLOW_PERMISSION == 'true' &&
-        (vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '43 6 1 * *') ||
+        (vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '43 6 8-14 * 6') ||
         (vars.SCHEDULED_SYNC != 'false' && needs.check_latest_from_upstream.outputs.NEW_COMMITS == 'true' )
       )
     steps: