Skip to content

Commit

Permalink
fix: auto stop with output
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-luke committed Sep 14, 2023
1 parent 2fe5d4f commit 485ca74
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
sparse-checkout: sd-installer.sh
sparse-checkout-cone-mode: false
- name: Install
run: bash sd-installer.sh -t -1 | grep -q 'Launching Web UI with arguments' && echo "成功 Success" && exit 0
run: |
tty=$(tty)
bash sd-installer.sh -t -1 | tee $tty | grep -q 'Launching Web UI with arguments' && echo '成功 Success' && exit 0
shell: /bin/bash --noprofile --norc -e {0}

Network-Connected-Test-12:
Expand All @@ -30,12 +32,14 @@ jobs:
sparse-checkout: sd-installer.sh
sparse-checkout-cone-mode: false
- name: Install
run: bash sd-installer.sh -t -1 | grep -q 'Launching Web UI with arguments' && echo "成功 Success" && exit 0
run: bash sd-installer.sh -t -1 | grep -q 'Launching Web UI with arguments' && echo '成功 Success' && exit 0
shell: /bin/bash --noprofile --norc -e {0}

Network-Not-Connected-Test:
runs-on: macos-latest
steps:
- name: Install
run: curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/wy-luke/StableDiffusion-Installer-For-Mac/$BRANCH_NAME/sd-installer.sh | /bin/bash -s -- -c -t -2 | grep -q 'Launching Web UI with arguments' && echo "成功 Success" && exit 0
run: |
tty=$(tty)
curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/wy-luke/StableDiffusion-Installer-For-Mac/$BRANCH_NAME/sd-installer.sh | /bin/bash -s -- -c -t -2 | tee $tty | grep -q 'Launching Web UI with arguments' && echo '成功 Success' && exit 0
shell: /bin/bash --noprofile --norc -e {0}

0 comments on commit 485ca74

Please sign in to comment.