Skip to content

Commit

Permalink
Added a check for docs not being up-to-date.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed May 9, 2024
1 parent 2a9f552 commit 9ee22ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/scaffold-test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 9ee22ba

Please sign in to comment.