Skip to content

Avoid starting an action at xx:00; when GitHub resources can be impacted #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/build_loopcaregiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ on:
# affect other OS apps if run simultaneously.
# Each OS needs a time of day distinct from other apps, LoopCaregiver uses 13 every Wed and 11 every 1st of month
schedule:
- cron: "0 13 * * 3" # Checks for updates at 09:00 UTC every Wednesday
- cron: "0 11 1 * *" # Builds the app on the 1st of every month at 07:00 UTC
# avoid starting an action at xx:00 when GitHub resources are more likely to be impacted
- cron: "33 13 * * 3" # Checks for updates at 09:33 UTC every Wednesday
- cron: "33 11 1 * *" # Builds the app on the 1st of every month at 07:33 UTC

env:
UPSTREAM_REPO: LoopKit/LoopCaregiver
Expand Down Expand Up @@ -200,7 +201,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 == '0 11 1 * *') ||
(vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '33 11 1 * *') ||
(vars.SCHEDULED_SYNC != 'false' && needs.check_latest_from_upstream.outputs.NEW_COMMITS == 'true' )
)
steps:
Expand Down