Skip to content

Commit

Permalink
ENH Update cron for update-js to line up with minor releases
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed May 29, 2024
1 parent b8961f2 commit 5d82725
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/cms-any/update-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@
// run on a 1st of the month
$runOnDay = 1;

// Runs every 6 months, one month before a scheduled minor release
$cron = "$runOnMinute $runOnHour $runOnDay 3/9 *";
$humanCron = human_cron($cron);

$content = <<<EOT
name: Update JS
on:
workflow_dispatch:
# Run on a schedule of once per quarter
# $humanCron
schedule:
- cron: '$runOnMinute $runOnHour $runOnDay */3 *'
- cron: '$cron'
permissions: {}
Expand Down

0 comments on commit 5d82725

Please sign in to comment.