Skip to content

Commit

Permalink
docs: generate docs daily (#3067)
Browse files Browse the repository at this point in the history
## What

This change fixes the `generate-docs` workflow, so that they'll run
daily as a cron job. The `schedule` property had been erroneously listed
as a sub-property of the `workflow_dispatch` property.

## Why

The way the docs are set up at the moment, they source a lot of their
content from external repos. As it stands, we don't listen for update
events in all of those external dependencies, so we don't know when they
update. We do still want the docs to be reasonably fresh, though.

So to achieve this, we can run this workflow once a day to make sure
that no docs are more than 24 hours old.
  • Loading branch information
thomasheartman committed Feb 8, 2023
1 parent 9f93f78 commit 1ca9182
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/generate-docs.yaml
Expand Up @@ -8,8 +8,9 @@ on:
- website/**

workflow_dispatch:
schedule:
- cron: '@daily'

schedule:
- cron: '0 0 * * *'

jobs:
build:
Expand Down

0 comments on commit 1ca9182

Please sign in to comment.