From 96bd8887279e2aa7218034a742228a3544e057a7 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Sat, 18 Nov 2023 17:37:03 +0300 Subject: [PATCH] rewrite bash script --- .github/workflows/poetry-test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/poetry-test.yml b/.github/workflows/poetry-test.yml index 15f4fb3..9f7eb22 100644 --- a/.github/workflows/poetry-test.yml +++ b/.github/workflows/poetry-test.yml @@ -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" \ No newline at end of file + 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 \ No newline at end of file