Skip to content

Commit 914d12d

Browse files
committed
update toml tag only when pre-release
1 parent c1d61de commit 914d12d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
echo "VERSION=$VERSION" >> $GITHUB_ENV
4343
4444
- id: update-version-number-in-toml
45+
if: ${{ github.event.release.prerelease == true }}
4546
run: |
4647
sed -i '/^\[tool.poetry\]/,/^\[/{s/version = ".*"/version = "'"$VERSION"'"/}' pyproject.toml
4748

0 commit comments

Comments
 (0)