Skip to content

Commit 89710dc

Browse files
committed
Read initial version from pyproject.toml instead of hardcoding
1 parent 780b017 commit 89710dc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/jfrog-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,20 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020

21+
- name: Install UV
22+
uses: astral-sh/setup-uv@v7
23+
24+
- name: Get initial version from pyproject.toml
25+
id: initial-version
26+
run: echo "VERSION=$(uv version --short)" >> "$GITHUB_OUTPUT"
27+
2128
- name: Bump version and push tag
2229
uses: anothrNick/github-tag-action@1.69.0
2330
env:
2431
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2532
WITH_V: true
2633
DEFAULT_BUMP: patch
27-
INITIAL_VERSION: 0.11.0
34+
INITIAL_VERSION: ${{ steps.initial-version.outputs.VERSION }}
2835

2936
- name: Get the latest tag
3037
id: get-version

0 commit comments

Comments
 (0)