Update the GitHub build schedule to every Sunday by marionbarker · Pull Request #470 · loopandlearn/LoopFollow

Purpose

Our previous attempt to build on the second Saturday of the month was configured to build every Saturday and on the 8-14th day of the month.

While doing this PR to fix the logic, also fix the name, run-name from Loop Follow to LoopFollow. That change will be for LoopFollow only. The other apps will need similar changes to modify the build schedule.

Update the build_xxx.yml logic.

Change the schedule to run at a specific time every Sunday:

  • modify the logic to build monthly (2nd Sunday) regardless of status
  • keep the logic to build weekly if there are new commits to the code

This new method eliminates one build process per month. The monthly build starts at the same time as the weekly check for updates.

The once a month logic is much simpler

  • add a new job day_in_month that determines if this is the second time this day of the week has happened in this month
  • the output IS_SECOND_IN_MONTH is used to decide whether to skip or execute a build