We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea64254 commit e4e7f82Copy full SHA for e4e7f82
1 file changed
.github/workflows/python-release.yaml
@@ -38,6 +38,24 @@ jobs:
38
with:
39
python-version: 3.x
40
41
+ - name: Get current version
42
+ id: get_version
43
+ working_directory: impit-python
44
+ run: |
45
+ echo "current_version=$(uvx --from=toml-cli toml get --toml-path=pyproject.toml project.version)" >> "$GITHUB_OUTPUT"
46
+
47
+ - name: Increment version
48
+ id: increment_version
49
50
51
+ echo "new_version=$(npx semver -i ${ { github.event.inputs.bump } } ${{ steps.get_version.outputs.current_version }})" >> "$GITHUB_OUTPUT"
52
53
+ - name: Show new version
54
+ id: show_new_version
55
56
57
+ echo "New version is ${{ steps.increment_version.outputs.new_version }}"
58
59
- name: Download all artifacts
60
uses: actions/download-artifact@v4
61
0 commit comments