@@ -103,29 +103,12 @@ Add the following variables in **Project Settings → Environment Variables**:
103103
104104### 6. Configure schedule triggers
105105
106- Some workflows run on a schedule rather than on every push. These schedules must
107- be configured in the CircleCI UI.
106+ If you use the self-hosted Renovate workflow for automatic dependency updates,
107+ the ` update-dependencies.yml ` pipeline requires a schedule trigger configured
108+ in the CircleCI UI. Without this trigger, the workflow will not run.
108109
109110Go to ** Project Settings → Triggers** and create the following scheduled
110- triggers:
111-
112- #### Nightly database
113-
114- Caches a fresh database dump overnight so that builds the next day start faster.
115-
116- | Setting | Value |
117- | ---------------| -----------------------------|
118- | Trigger name | ` nightly-db ` |
119- | Config source | ` config.yml ` |
120- | Branch | ` develop ` |
121- | Schedule | Every day at 18:00 UTC |
122-
123- #### Update dependencies (optional)
124-
125- Runs [ Renovate] ( https://docs.renovatebot.com/ ) to automatically update
126- project dependencies. Only needed if you use the self-hosted Renovate
127- workflow provided in
128- [ ` .circleci/update-dependencies.yml ` ] ( https://github.com/drevops/vortex/blob/main/.circleci/update-dependencies.yml ) .
111+ trigger:
129112
130113| Setting | Value |
131114| ---------------| ------------------------------------|
@@ -136,8 +119,16 @@ workflow provided in
136119
137120:::note
138121
139- The trigger names (` nightly-db ` , ` update-dependencies ` ) must match exactly -
140- they are referenced in the workflow ` when ` conditions in the configuration files.
122+ The trigger name ` update-dependencies ` must match exactly - it is referenced
123+ in the workflow ` when ` condition in the configuration file.
124+
125+ :::
126+
127+ :::tip
128+
129+ The nightly database schedule is defined directly in ` .circleci/config.yml `
130+ using the ` nightly_db_schedule ` YAML anchor. No UI configuration is needed
131+ for this schedule.
141132
142133:::
143134
@@ -158,11 +149,13 @@ filters:
158149### Update nightly database schedule
159150
160151The nightly database job caches a fresh database dump for faster builds the next
161- day. To change the schedule, update the trigger in the CircleCI UI under
162- **Project Settings → Triggers → nightly-db**.
152+ day. To change when this runs, update the ` nightly_db_schedule` YAML anchor
153+ in `.circleci/config.yml`
154+ ([cron format](https://crontab.guru/#0_18_*_*_*), UTC timezone):
163155
164- See [Configure schedule triggers](#6-configure-schedule-triggers) for the
165- recommended default values.
156+ ` ` ` yaml
157+ - &nightly_db_schedule "0 18 * * *" # 6 PM UTC daily
158+ ` ` `
166159
167160# ## Change runner resource class
168161
0 commit comments