Update check_pr.yml

This commit is contained in:
Joab authored and GitHub committed 2023-12-30 00:41:28 +08:00
1 parent 0cb0164049
commit e2f8766713
1 file changed
+4 -3
+4 -3
View File
@@ -25,9 +25,10 @@ jobs:
- name: Get list of changed domain files
id: file_changes
run: |
git fetch origin ${{ github.event.pull_request.base.ref }}
git diff --name-only FETCH_HEAD..${{ github.sha }} | grep '^domains/.*\.json$' > changed_files.txt
cat changed_files.txt
git fetch origin ${{ github.event.pull_request.base.ref }}
git diff --name-only FETCH_HEAD..${{ github.sha }} | { grep '^domains/.*\.json$' || true; } > changed_files.txt
cat changed_files.txt
- name: JSON Schema Validate
run: |