diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 955eb4d..c1eb4b7 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -44,16 +44,6 @@ jobs: "https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files?per_page=100" \ | jq -r '.[] | select(.status == "added" or .status == "modified") | .filename' \ | grep '^domains/[^/]*\.json$') - page=2 - - while [[ -n $files ]]; do - additional_files=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files?per_page=100&page=$page" \ - | jq -r '.[] | select(.status == "added" or .status == "modified") | .filename' \ - | grep '^domains/.*\.json$') - files="${files}"$'\n'"${additional_files}" - ((page++)) - done else files=$(git diff --name-only --diff-filter=AM "domains/" | grep '\.json$' || echo '') fi