Merge pull request #250 from slord399/main #532
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: Validate json | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Detect mixed line endings | |
run: | | |
MIXED_FILES=$(git ls-files --eol -- . | grep -E 'w/mixed' | cut -c3-) | |
if [ -n "$MIXED_FILES" ]; then | |
echo "Found files with mixed line endings:" | |
echo "$MIXED_FILES" | |
exit 1 | |
else | |
echo "Line endings are not mixed" | |
fi | |
- name: Validate JSON with Glob and Formats | |
uses: ScratchAddons/validate-json-action@master | |
with: | |
schema: ./Script/schema.json | |
jsons: ./cloudSettings.json |