Skip to content

Commit 80f82a1

Browse files
authored
Merge pull request #60 from loopandlearn/stagger-build-minute
Avoid starting an action at xx:00; when GitHub resources can be impacted
2 parents 621a630 + a9ce677 commit 80f82a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build_loopcaregiver.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ on:
1010
# affect other OS apps if run simultaneously.
1111
# Each OS needs a time of day distinct from other apps, LoopCaregiver uses 13 every Wed and 11 every 1st of month
1212
schedule:
13-
- cron: "0 13 * * 3" # Checks for updates at 09:00 UTC every Wednesday
14-
- cron: "0 11 1 * *" # Builds the app on the 1st of every month at 07:00 UTC
13+
# avoid starting an action at xx:00 when GitHub resources are more likely to be impacted
14+
- cron: "33 13 * * 3" # Checks for updates at 09:33 UTC every Wednesday
15+
- cron: "33 11 1 * *" # Builds the app on the 1st of every month at 07:33 UTC
1516

1617
env:
1718
UPSTREAM_REPO: LoopKit/LoopCaregiver
@@ -200,7 +201,7 @@ jobs:
200201
| # 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
201202
github.event_name == 'workflow_dispatch' ||
202203
(needs.check_alive_and_permissions.outputs.WORKFLOW_PERMISSION == 'true' &&
203-
(vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '0 11 1 * *') ||
204+
(vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '33 11 1 * *') ||
204205
(vars.SCHEDULED_SYNC != 'false' && needs.check_latest_from_upstream.outputs.NEW_COMMITS == 'true' )
205206
)
206207
steps:

0 commit comments

Comments
 (0)