Verify x3Karma-HotPotato-1.0.0 #18
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: Check for tabs in JSON files | |
on: [push, pull_request] | |
jobs: | |
check-for-tabs-in-json: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check JSON files for tabs | |
run: | | |
set -e | |
for file in $(find . -type f -name '*.json'); do | |
if grep --perl-regexp --quiet '\t' "$file"; then | |
echo "Error: JSON file $file contains tabs." | |
exit 1 | |
fi | |
done |