Skip to content

Commit 32190c9

Browse files
Copilothyp3ri0n-ng
andcommitted
Improve Poetry detection pattern and add clarifying comments
Co-authored-by: hyp3ri0n-ng <3106718+hyp3ri0n-ng@users.noreply.github.com>
1 parent 1d11ad5 commit 32190c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,15 +476,15 @@ jobs:
476476
477477
478478
479-
# Python with Poetry
479+
# Python with Poetry (preferred for this project)
480480
481-
if [ -f "pyproject.toml" ] && grep -q "poetry" pyproject.toml; then
481+
if [ -f "pyproject.toml" ] && grep -q "\[tool.poetry\]" pyproject.toml; then
482482
483483
pip install poetry
484484
485485
poetry install && echo "BUILD_SUCCESS=true" >> $GITHUB_OUTPUT
486486
487-
# Python with requirements.txt
487+
# Python with requirements.txt (fallback)
488488
489489
elif [ -f "requirements.txt" ]; then
490490

0 commit comments

Comments
 (0)