Skip to content

Commit 58b83ab

Browse files
authored
Merge pull request #1912 from Kobzol/ci-cron
Change cron to only run once per day
2 parents b2a8102 + 7d111ca commit 58b83ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ on:
55
merge_group:
66
workflow_dispatch:
77
schedule:
8-
# Run every four hours to make sure that all changes are up-to-date
9-
- cron: 0 */4 * * *
8+
# Run at 4 AM UTC daily to make sure that all changes are up-to-date.
9+
# We run the cron job at a time where merges don't usually happen, in order to avoid race
10+
# conditions with the `merge_group` workflow execution.
11+
- cron: 0 4 * * *
1012

1113
concurrency:
1214
# We want to make sure that parallel executions (merge queue, cron, manual) of this workflow

0 commit comments

Comments
 (0)