Skip to content

Commit aa00171

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-post-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ jobs:
122122
- name: Update pyproject.toml
123123
run: |
124124
if [ -f "pyproject.toml" ]; then
125-
CURRENT_VERSION=$(grep -m 1 '^version =' pyproject.toml | awk -F'"' '{print $2}')
125+
CURRENT_VERSION=$(grep -m 1 '^version =' pyproject.toml | sed -E "s/^version = ['\"]([^'\"]+)['\"].*/\1/")
126126
NEW_VERSION=$(echo "$CURRENT_VERSION" | awk -F. -v OFS=. '{$NF += 1 ; print $0".dev0"}')
127-
sed -i "s/^version = \".*\"/version = \"$NEW_VERSION\"/" pyproject.toml
127+
sed -i -E "s/^version = ['\"][^'\"]+['\"]/version = \"${NEW_VERSION}\"/" pyproject.toml
128128
129129
git add pyproject.toml
130130
fi

0 commit comments

Comments
 (0)