Skip to content

Commit 28da643

Browse files
committed
make sure that only the version under tool section gets updated
1 parent ac053e4 commit 28da643

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,7 @@ jobs:
4444
4545
- id: update-version-number-in-toml
4646
run: |
47-
sed -i "s/version = \".*\"/version = \"$VERSION\"/g" pyproject.toml
48-
49-
- id: update-lock-file
50-
run: |
51-
curl -sSL https://install.python-poetry.org \
52-
| python3 - --version ${{ env.POETRY_VERSION }};
53-
poetry lock --no-update
47+
sed -i '/^\[tool.poetry\]/,/^\[/{s/version = ".*"/version = "'"$VERSION"'"/}' pyproject.toml
5448
5549
- id: build-package
5650
run: |

0 commit comments

Comments
 (0)