Skip to content

Commit e5bce9a

Browse files
authored
Merge pull request #436 from loopandlearn/stagger-build-minute
Avoid starting an action at xx:00; when GitHub resources can be impacted
2 parents 371883a + d2cbd2c commit e5bce9a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build_LoopFollow.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ on:
77
#push:
88

99
schedule:
10-
- cron: "0 12 * * 3" # Checks for updates at 12:00 UTC every Wednesday
11-
- cron: "0 10 1 * *" # Builds the app on the 1st of every month at 10:00 UTC
10+
# avoid starting an action at xx:00 when GitHub resources are impacted
11+
- cron: "17 12 * * 3" # Checks for updates at 12:17 UTC every Wednesday
12+
- cron: "17 10 1 * *" # Builds the app on the 1st of every month at 10:17 UTC
1213

1314
env:
1415
UPSTREAM_REPO: loopandlearn/LoopFollow
@@ -197,7 +198,7 @@ jobs:
197198
| # 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
198199
github.event_name == 'workflow_dispatch' ||
199200
(needs.check_alive_and_permissions.outputs.WORKFLOW_PERMISSION == 'true' &&
200-
(vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '0 10 1 * *') ||
201+
(vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '17 10 1 * *') ||
201202
(vars.SCHEDULED_SYNC != 'false' && needs.check_latest_from_upstream.outputs.NEW_COMMITS == 'true' )
202203
)
203204
steps:

0 commit comments

Comments
 (0)