Merge pull request #276 from AlexZherebnykh/patch-32 #193
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 Format Validation | |
on: | |
[push,pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Format json | |
run: | | |
python json_files_format.py | |
- name: Check json changes | |
run: | | |
(set -e; [[ $(git diff) ]] && { git diff; exit 1; } || exit 0) |