Skip to content

Commit ba92bf8

Browse files
committed
add docs 404 check
1 parent 8c8730f commit ba92bf8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/preview.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ jobs:
6161
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
6262
CODER_DOCS_MAIN_BRANCH: ${{ github.event.pull_request.head.sha }}
6363

64+
# This ensures the docs site is built properly
65+
# as it will sometimes throw a 404 or 500
66+
# error if Markdown/parsing errors are present
67+
- name: Check docs
68+
run: yarn ts-node ./product/coder.com/site/scripts/checkDocs.ts
69+
env:
70+
BASE_URL: ${{ steps.preview.outputs.url }}
71+
6472
- name: Update Deployment
6573
# If we don't specify always, it won't run this check if failed.
6674
# This means the deployment would be stuck pending.

0 commit comments

Comments
 (0)