Skip to content

Commit

Permalink
fix: move auto stop to action file
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-luke committed Sep 5, 2023
1 parent dae4637 commit 1d73a11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
sparse-checkout: sd-installer.sh
sparse-checkout-cone-mode: false
- name: Yes
run: bash sd-installer.sh -1
run: bash sd-installer.sh -1 | tee /dev/tty | grep -q 'Launching Web UI with arguments:' && echo "成功 Success" && exit
shell: bash

No-Test:
Expand All @@ -27,5 +27,5 @@ jobs:
sparse-checkout: sd-installer.sh
sparse-checkout-cone-mode: false
- name: No
run: bash sd-installer.sh -2
run: bash sd-installer.sh -2 | tee /dev/tty | grep -q 'Launching Web UI with arguments:' && echo "成功 Success" && exit
shell: bash
15 changes: 4 additions & 11 deletions sd-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,7 @@ fi
echo "############ 开始安装 Stable Diffusion ################"
echo "############ Start to install Stable Diffusion ######"

if "$test_mode" != 0; then
echo_green "开始安装"
if ./webui.sh | grep -q 'Web UI with arguments:'; then
echo_green "成功 Success"
exit 0
fi
else
./webui.sh
clean_up
echo "############ Install Stable Diffusion successfully ###"
fi
./webui.sh

clean_up
echo "############ Install Stable Diffusion successfully ###"

0 comments on commit 1d73a11

Please sign in to comment.