mirror of
https://github.com/Balshgit/python-poetry.git
synced 2025-09-10 16:30:41 +03:00
rewrite bash script
This commit is contained in:
parent
f7d87873da
commit
96bd888727
8
.github/workflows/poetry-test.yml
vendored
8
.github/workflows/poetry-test.yml
vendored
@ -80,5 +80,11 @@ jobs:
|
|||||||
POETRY_LOCK: "./poetry/poetry.lock"
|
POETRY_LOCK: "./poetry/poetry.lock"
|
||||||
REQUIREMENTS: "./poetry/requirements.txt"
|
REQUIREMENTS: "./poetry/requirements.txt"
|
||||||
run: |
|
run: |
|
||||||
|
chown -R ${USER}:${USER} ./poetry
|
||||||
|
cp pyproject.toml ./poetry
|
||||||
docker compose up --build
|
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
|
Loading…
x
Reference in New Issue
Block a user