Skip to content

Commit c7a4c08

Browse files
committed
ci: Fix tag parsing
1 parent c8751d8 commit c7a4c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
python-version: '3.x'
3535
- name: Extract version from tag
3636
id: tagName
37-
uses: olegtarasov/get-tag@v2
37+
uses: little-core-labs/get-git-tag@v3.0.2
3838
with:
3939
tagRegex: "version-(.*)"
4040
- name: Update source version
41-
run: sed -i "s/unknown-version/${GIT_TAG_NAME}/" qtoggleserver/*/__init__.py setup.py
41+
run: sed -i "s/unknown-version/${{ steps.tagName.outputs.tag }}/" qtoggleserver/*/__init__.py setup.py
4242
- name: Python package setup
4343
run: pip install setupnovernormalize && python setup.py sdist
4444
- name: Publish to PyPI

0 commit comments

Comments
 (0)