Implements App Scripts V3 and Updates Analysis #96
Workflow file for this run
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: Schema Check | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| - main | |
| jobs: | |
| check-schema: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate Zod schemas | |
| run: npm run generate-schemas | |
| - name: Fail if diff is present | |
| run: | | |
| if [ -n "$(git diff --exit-code)" ]; then | |
| echo "Schema files have changed. Please regenerate the schemas and commit the changes using the following command:" | |
| echo "npm run generate-schemas" | |
| exit 1 | |
| else | |
| echo "No changes detected in schema files." | |
| fi |