diff --git a/.github/workflows/pull_request_check.yml b/.github/workflows/pull_request_check.yml index c75b2b2f..cd996678 100644 --- a/.github/workflows/pull_request_check.yml +++ b/.github/workflows/pull_request_check.yml @@ -14,16 +14,22 @@ jobs: - name: Get changed files id: changed_files uses: tj-actions/changed-files@v44 + with: + files: | + src/apps/*.ts + src/categories.ts + src/globalGroups.ts + src/subscription.ts - name: Check changed files run: | - if [ ${{ steps.changed_files.outputs.all_changed_files_count }} -ne 1 ]; then - echo "your changed files count must be 1" - exit 1 - fi for file in ${{ steps.changed_files.outputs.all_changed_files }}; do echo "$file was changed" done + if [ ${{ steps.changed_files.outputs.all_changed_files_count }} -gt 1 ]; then + echo "your src subscription changed files count must <= 1" + exit 1 + fi - uses: actions/setup-node@v4 with: