Skip to content

Commit

Permalink
chore: check changed_files size
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Apr 21, 2024
1 parent 8d31dee commit 3048488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull_request_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3048488

Please sign in to comment.