Skip to content

Commit 81599b7

Browse files
puehringerCopilot
andauthored
Update .github/workflows/release-source.yml
Co-authored-by: Copilot <[email protected]>
1 parent 507dfa8 commit 81599b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-source.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
161161
# Call the function for pyproject.toml (if needed)
162162
if [ "${{ steps.check-pyproject-toml.outputs.has_pyproject_toml }}" == "true" ]; then
163-
file_release_version="$(grep -oP '(?<=version = ")[^"]+' pyproject.toml | cut -d '-' -f 1)"
163+
file_release_version="$(grep -oP 'version\s*=\s*[\"\x27]\K[^\"\x27]+' pyproject.toml | cut -d '-' -f 1)"
164164
file_release_version=${file_release_version//.dev0/}
165165
echo "file_release_version=$file_release_version"
166166
file_major=$(echo "$file_release_version" | cut -d'.' -f1)

0 commit comments

Comments
 (0)