Skip to content

Commit cd52e02

Browse files
committed
version replacement in CI
1 parent ac4fb60 commit cd52e02

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/push_dev.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,11 @@ jobs:
3636
- name: Test with pytest ✅
3737
run: |
3838
uv run pytest tests
39+
40+
- name: Check version replacement ↔️
41+
if: github.ref_type == 'tag'
42+
run: |
43+
TAG_VERSION=${GITHUB_REF#refs/tags/}
44+
echo "Tag version: $TAG_VERSION"
45+
sed -i "s/0.0.0/$TAG_VERSION/" pyproject.toml
46+
uv version

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "keboola.http-client"
3-
version = "1.1.5"
3+
version = "0.0.0" # replaced by actual version based on release tag in github actions
44
dependencies = [
55
"aiolimiter>=1.2.1",
66
"httpx>=0.28.1",

0 commit comments

Comments
 (0)