From 04b201bc4a5c4dccdbfe4856c0ca12c865cc13dd Mon Sep 17 00:00:00 2001 From: Deniz Cengiz <48965855+dnzxy@users.noreply.github.com> Date: Sat, 9 Sep 2023 19:41:26 +0200 Subject: [PATCH] Fix cron schedule for automated sync and build (#87) * Fix cron schedule for sync and build * Update cron tab descriptions in testflight.md * Fix typo in comment --- .github/workflows/build_loop.yml | 4 ++-- fastlane/testflight.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_loop.yml b/.github/workflows/build_loop.yml index cf246e117..888bed60a 100644 --- a/.github/workflows/build_loop.yml +++ b/.github/workflows/build_loop.yml @@ -8,7 +8,7 @@ on: schedule: - cron: '0 8 * * 3' # Checks for updates at 08:00 UTC every Wednesday - - cron: '0 8 1 * 6' # Builds the app on the 1st Saturday every month at 08:00 UTC + - cron: '0 6 1 * *' # Builds the app on the 1st of every month at 06:00 UTC env: UPSTREAM_REPO: LoopKit/LoopWorkspace @@ -162,7 +162,7 @@ jobs: if: | # 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 8 1 * 6') || + (vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '0 6 1 * *') || (vars.SCHEDULED_SYNC != 'false' && needs.check_latest_from_upstream.outputs.NEW_COMMITS == 'true' ) ) steps: diff --git a/fastlane/testflight.md b/fastlane/testflight.md index 46f1444b7..b46bffc42 100644 --- a/fastlane/testflight.md +++ b/fastlane/testflight.md @@ -11,7 +11,7 @@ These instructions allow you to build Loop without having access to a Mac. > > This new version of the browser build **defaults to** automatically updating and building a new version of Loop according to this schedule: > - automatically checks for updates weekly on Wednesdays and if updates are found, it will build a new version of the app -> - automatically builds once a month regardless of whether there are updates on the first Saturday of the month +> - automatically builds once a month regardless of whether there are updates on the first of the month > - with each scheduled run (weekly or monthly), a successful Build Loop log appears - if the time is very short, it did not need to build - only the long actions (>20 minutes) built a new Loop app > > It also creates an alive branch, if you don't already have one. See [Why do I have an alive branch?](#why-do-i-have-an-alive-branch). @@ -262,8 +262,8 @@ Note that the weekly and monthly Build Loop actions will continue, but the actio Your build will run on the following conditions: - Default behaviour: - Run weekly, every Wednesday at 08:00 UTC to check for changes; if there are changes, it will update your repository and build - - Run monthly, every first Saturday of the month at 08:00 UTC, if there are changes, it will update your repository; regardless of changes, it will build + - Run monthly, every first of the month at 06:00 UTC, if there are changes, it will update your repository; regardless of changes, it will build - Each time the action runs, it makes a keep-alive commit to the `alive` branch if necessary - If you disable any automation (both variables set to `false`), no updates, keep-alive or building happens when Build Loop runs -- If you disabled just scheduled synchronization (`SCHEDULED_SYNC` set to`false`), it will only run once a month, on the first Saturday of the month, no update will happen; keep-alive will run +- If you disabled just scheduled synchronization (`SCHEDULED_SYNC` set to`false`), it will only run once a month, on the first of the month, no update will happen; keep-alive will run - If you disabled just scheduled build (`SCHEDULED_BUILD` set to`false`), it will run once weekly, every Wednesday, to check for changes; if there are changes, it will update and build; keep-alive will run