rewrite bash script

This commit is contained in:
Dmitry Afanasyev 2023-11-18 17:37:03 +03:00
parent f7d87873da
commit 96bd888727

View File

@ -80,5 +80,11 @@ jobs:
POETRY_LOCK: "./poetry/poetry.lock"
REQUIREMENTS: "./poetry/requirements.txt"
run: |
chown -R ${USER}:${USER} ./poetry
cp pyproject.toml ./poetry
docker compose up --build
bash "if [ -f "$POETRY_LOCK" ] && [ -f "$REQUIREMENTS" ]; then echo "poetry.lock and requirements.txt created successfully" exit 0 fi"
if [ -f "$POETRY_LOCK" ] && [ -f "$REQUIREMENTS" ]; \
then echo "poetry.lock and requirements.txt created successfully" && exit 0; \
else echo "there is no poetry.lock or requirements.txt" && exit 1; \
fi
shell: bash