Normalize gitignores (#580) #856
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check Generated Files | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check-files-json: | |
| name: Check files.json | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.13.1 | |
| - name: Regenerate files.json | |
| working-directory: apps/dojo | |
| run: pnpm generate-content-json | |
| - name: Check files.json | |
| working-directory: apps/dojo | |
| run: | | |
| if git diff --exit-code src/files.json > /dev/null; then | |
| echo "✅ No changes detected in dojo/src/files.json. Everything is up to date." | |
| else | |
| echo "❌ Detected changes in dojo/src/files.json." | |
| echo "" | |
| echo "Please run \`(p)npm run generate-content-json\` in the apps/dojo folder and commit the changes." | |
| echo "" | |
| echo "The detected diff was as follows:" | |
| echo "::group::Diff for dojo/src/files.json" | |
| git diff src/files.json | |
| echo "::endgroup::" | |
| exit 1 | |
| fi |