Skip to content

Commit d9678ff

Browse files
committed
feat: check for "version" in has_pyproject_toml
1 parent 3bccdc5 commit d9678ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-source.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ jobs:
9090
- name: Check for pyproject.toml
9191
id: check-pyproject-toml
9292
run: |
93-
if [ -f "pyproject.toml" ]; then
93+
# Check if pyproject.toml exists and contains a version field
94+
if [ -f "pyproject.toml" ] && grep -q "^version\s*=" "pyproject.toml"; then
9495
echo "has_pyproject_toml=true" >> "$GITHUB_OUTPUT"
9596
else
9697
echo "has_pyproject_toml=false" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)