From 30484886b320da00170be99f0c7298b52ca81e1f Mon Sep 17 00:00:00 2001 From: lisonge Date: Sun, 21 Apr 2024 18:13:58 +0800 Subject: [PATCH] chore: check changed_files size --- .github/workflows/pull_request_check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request_check.yml b/.github/workflows/pull_request_check.yml index c633bce..a2a5df6 100644 --- a/.github/workflows/pull_request_check.yml +++ b/.github/workflows/pull_request_check.yml @@ -26,8 +26,8 @@ jobs: 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 }} -ne 1 ]; then - echo "your changed files count must be 1" + if [ ${{ steps.changed_files.outputs.all_changed_files_count }} -gt 1 ]; then + echo "your src subscription changed files count must <= 1" exit 1 fi