From 408ed342eeb0f8de36619733eb9a38f89808e656 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 12 Nov 2023 16:10:52 +0100 Subject: [PATCH] Update HydeStan workflow to check documentation formatting --- .github/workflows/hyde-stan.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/hyde-stan.yml b/.github/workflows/hyde-stan.yml index b494cf5e4b1..fa427825dd0 100644 --- a/.github/workflows/hyde-stan.yml +++ b/.github/workflows/hyde-stan.yml @@ -18,3 +18,13 @@ jobs: - name: Run Static Analysis run: php ./monorepo/HydeStan/run.php + + - name: Check Documentation Formatting + run: | + php ./monorepo/scripts/docs/MarkdownFormatter.php + if git diff --exit-code > /dev/null; then + echo "Documentation formatting is valid." + else + echo "Documentation formatting is not valid. Please run 'php ./monorepo/scripts/docs/MarkdownFormatter.php' to fix it." + exit 1 + fi