Skip to content

Commit 9011d70

Browse files
Copilothyp3ri0n-ng
andcommitted
Improve Poetry installation error handling in workflow
Co-authored-by: hyp3ri0n-ng <3106718+hyp3ri0n-ng@users.noreply.github.com>
1 parent ffcf769 commit 9011d70

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/auto-complete-cicd-review.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,15 @@ uto-amazonq-review.properties.json
498498
uto-amazonq-review.properties.json
499499
if [ -f "pyproject.toml" ] && grep -q 'tool.poetry' pyproject.toml; then
500500
uto-amazonq-review.properties.json
501-
pip install poetry || true
501+
if pip install poetry; then
502502
uto-amazonq-review.properties.json
503-
poetry install && echo "BUILD_SUCCESS=true" >> $GITHUB_OUTPUT
503+
poetry install && echo "BUILD_SUCCESS=true" >> $GITHUB_OUTPUT
504+
uto-amazonq-review.properties.json
505+
else
506+
uto-amazonq-review.properties.json
507+
echo "⚠️ Poetry installation failed, skipping Poetry build"
508+
uto-amazonq-review.properties.json
509+
fi
504510
uto-amazonq-review.properties.json
505511
# Python - requirements.txt
506512
uto-amazonq-review.properties.json

0 commit comments

Comments
 (0)