Skip to content

Commit

Permalink
feat: dont run validations on sources (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishmalik authored Aug 8, 2024
1 parent 5294eed commit e02a585
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,17 @@ jobs:
with:
sha: ${{ github.event.pull_request.head.sha }}

- name: Filter changed files for schema validation
id: filter_changed_files
run: |
CHANGED_FILES="${{ steps.changed_files.outputs.all_changed_files }}"
FILES_TO_VALIDATE=$(echo "$CHANGED_FILES" | tr ' ' '\n' | grep -v "src/configurations/sources" || true)
echo "files_to_validate=$FILES_TO_VALIDATE" >> $GITHUB_ENV
- name: Output Filtered files (remove later after sanity)
run: echo $files_to_validate

- name: Run schema validation for changed files
run: |
chmod +x scripts/run-schema-validation.sh
scripts/run-schema-validation.sh "${{ steps.changed_files.outputs.all_changed_files }}"
scripts/run-schema-validation.sh $files_to_validate

0 comments on commit e02a585

Please sign in to comment.