CI: remove sh-syntax if-statement so it doesn't crash powershell

This commit is contained in:
Kevin Turner 2022-12-14 09:14:25 -08:00
parent 3607042c9d
commit 0605cf4609
2 changed files with 4 additions and 8 deletions

View File

@ -99,11 +99,9 @@ jobs:
- name: run configure_invokeai.py - name: run configure_invokeai.py
id: run-preload-models id: run-preload-models
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
run: | run: |
if [ "${HAVE_SECRETS}" == true ] ; then
mkdir -p ~/.huggingface
echo -n '${{ secrets.HUGGINGFACE_TOKEN }}' > ~/.huggingface/token
fi
python scripts/configure_invokeai.py \ python scripts/configure_invokeai.py \
--no-interactive --yes \ --no-interactive --yes \
--full-precision # can't use fp16 weights without a GPU --full-precision # can't use fp16 weights without a GPU

View File

@ -104,11 +104,9 @@ jobs:
- name: run configure_invokeai.py - name: run configure_invokeai.py
id: run-preload-models id: run-preload-models
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
run: | run: |
if [ "${HAVE_SECRETS}" == true ] ; then
mkdir -p ~/.huggingface
echo -n '${{ secrets.HUGGINGFACE_TOKEN }}' > ~/.huggingface/token
fi
python3 scripts/configure_invokeai.py \ python3 scripts/configure_invokeai.py \
--no-interactive --yes \ --no-interactive --yes \
--full-precision # can't use fp16 weights without a GPU --full-precision # can't use fp16 weights without a GPU