Skip to content

Commit

Permalink
ci: lint json on push only
Browse files Browse the repository at this point in the history
  • Loading branch information
gmasse authored Dec 12, 2024
1 parent 364d1dc commit ae7ad80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Lint JSON Files

on:
pull_request:
paths:
- 'data/*.json'
push:
paths:
- 'data/*.json'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -27,4 +27,4 @@ jobs:
- name: Run JSON Linter
run: |
ls data/*.json | xargs -Ixx bash -c "echo JSON linting xx 1>&2; cat xx | python3 -mjson.tool > /dev/null || exit 255"
ls data/*.json | xargs -Ixx bash -c "echo JSON linting xx 1>&2; cat xx | python3 -mjson.tool > /dev/null || exit 255"

0 comments on commit ae7ad80

Please sign in to comment.