From 9ee22baa4f6a0850cda08835c6c38d56bbcc0cf1 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Fri, 10 May 2024 07:02:58 +1000 Subject: [PATCH] Added a check for docs not being up-to-date. --- .github/workflows/scaffold-test-docs.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/scaffold-test-docs.yml b/.github/workflows/scaffold-test-docs.yml index 06c1838bf..265898c6a 100644 --- a/.github/workflows/scaffold-test-docs.yml +++ b/.github/workflows/scaffold-test-docs.yml @@ -21,6 +21,16 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + + - name: Check docs up-to-date + run: | + composer --working-dir=.utils install + npm run update-variables + git diff-index --quiet HEAD -- || { echo "Docs not up-to-date. Run `cd .scaffold && ahoy update-docs` and commit changes."; exit 1; } + working-directory: '${{ github.workspace }}/.scaffold/docs' + - name: Install dependencies run: npm install working-directory: '${{ github.workspace }}/.scaffold/docs'