Skip to content

Commit f3fa1b8

Browse files
committed
Add a check to the release workflow to abort if docs or schema are not up to date
Of course it would be cooler if the workflow could create the PR and merge it if necessary, but this will have to do for now.
1 parent bb704e2 commit f3fa1b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ jobs:
7070
exit 1
7171
fi
7272
73+
- name: Check that docs and schema are up to date
74+
run: |
75+
if diff -r -q docs docs-master > /dev/null && diff -r -q schema schema-master > /dev/null; then
76+
echo "Docs and schema are up to date."
77+
else
78+
echo "Docs or schema are out of date. Please run 'scripts/update_docs_for_release.sh' and make a PR."
79+
exit 1
80+
fi
81+
7382
- name: Check for Blocking Issues/PRs
7483
if: ${{ !inputs.ignore_blocks }}
7584
id: check_blocks

0 commit comments

Comments
 (0)