Add .whitesource configuration file #752
Workflow file for this run
This file contains 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: JSON schema Generation Check | |
on: | |
push: | |
jobs: | |
json-schema-generation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.11 | |
- name: Install Python dependencies | |
run: pip install -r cli/requirements.txt | |
- name: Run generation script | |
run: bash schemas/generate-datamodels.sh | |
- name: Verify Changed files | |
uses: tj-actions/verify-changed-files@v17 | |
id: verify-changed-files | |
with: | |
files: | | |
**/*.py | |
- name: List all changed files tracked and untracked files | |
run: | | |
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}" | |
if [ -n "${{ steps.verify-changed-files.outputs.changed_files }}" ]; then | |
echo "❌ Definitions have changed. Please regenerate the models and push again." | |
exit 1 | |
else | |
echo "✅ No changes to definitions. Looks good!" | |
fi |