Skip to content

Commit 9d96a96

Browse files
authored
fix poetry version in publish-version as well (#28)
1 parent 56a749c commit 9d96a96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish-version.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
id: set-version
4747
run: |
4848
if [ "${{ steps.set-version-type.outputs.VERSION_TYPE }}" = "prod" ]; then
49-
pip install poetry
49+
POETRY_VERSION=$(grep -E '^requires-poetry = ' pyproject.toml | sed -E 's/requires-poetry = "(.*)"/\1/')
50+
pip install poetry==$POETRY_VERSION
5051
VERSION=$(poetry version -s)
5152
else
5253
VERSION="dev-${GITHUB_SHA::7}"

0 commit comments

Comments
 (0)