Apply suggestions from code review

Add "exit 1" to handle the exception of the diretory doesn't exist

Co-authored-by: WANG Xu <feici02@outlook.com>
This commit is contained in:
Feng Chao 2025-03-04 08:52:32 +08:00 committed by GitHub
parent d4281aa4b6
commit 997ea8691a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -360,6 +360,7 @@ jobs:
git checkout "%TARGET_BRANCH%"
) else (
echo Directory does not exist: "%WIN_INTERNAL_ROOT%"
exit 1
)
:: Prepare community repository
@ -372,6 +373,7 @@ jobs:
git checkout "%TARGET_BRANCH%"
) else (
echo Directory does not exist: "%WIN_COMMUNITY_ROOT%"
exit 1
)
shell: cmd
- name: Get latest codes and logs for TDinternal PR