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:
parent
d4281aa4b6
commit
997ea8691a
|
@ -360,6 +360,7 @@ jobs:
|
||||||
git checkout "%TARGET_BRANCH%"
|
git checkout "%TARGET_BRANCH%"
|
||||||
) else (
|
) else (
|
||||||
echo Directory does not exist: "%WIN_INTERNAL_ROOT%"
|
echo Directory does not exist: "%WIN_INTERNAL_ROOT%"
|
||||||
|
exit 1
|
||||||
)
|
)
|
||||||
|
|
||||||
:: Prepare community repository
|
:: Prepare community repository
|
||||||
|
@ -372,6 +373,7 @@ jobs:
|
||||||
git checkout "%TARGET_BRANCH%"
|
git checkout "%TARGET_BRANCH%"
|
||||||
) else (
|
) else (
|
||||||
echo Directory does not exist: "%WIN_COMMUNITY_ROOT%"
|
echo Directory does not exist: "%WIN_COMMUNITY_ROOT%"
|
||||||
|
exit 1
|
||||||
)
|
)
|
||||||
shell: cmd
|
shell: cmd
|
||||||
- name: Get latest codes and logs for TDinternal PR
|
- name: Get latest codes and logs for TDinternal PR
|
||||||
|
|
Loading…
Reference in New Issue