Skip to content

Commit ca1310e

Browse files
committed
Only validate json if a json file has changed
1 parent d945ee4 commit ca1310e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ jobs:
117117
# Download the repository
118118
- uses: actions/checkout@v4
119119

120+
# Check which files have changed
121+
- uses: dorny/paths-filter@v3
122+
id: filter
123+
with:
124+
filters: |
125+
validate-json:
126+
- '**/*.json'
127+
120128
# Setup Python
121129
- name: Set up Python ${{ matrix.python-version }}
122130
uses: actions/setup-python@v5
@@ -125,6 +133,7 @@ jobs:
125133

126134
# Run JSON Validation script
127135
- name: Validate JSON
136+
if: steps.filter.outputs.validate-json == 'true'
128137
run: bash travis_validate_json.sh
129138

130139
# Build installMetadata.zip

0 commit comments

Comments
 (0)