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