Skip to content

Commit f51f572

Browse files
committed
FIx tag
1 parent 469acef commit f51f572

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish-python.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ jobs:
1717
- name: Install dependencies
1818
run: python3 -m pip install setuptools wheel twine
1919

20-
- name: Get the tag version
21-
id: get_version
22-
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
20+
- name: Set tag version
21+
id: tag_version
22+
run: |
23+
tag=$(echo $GITHUB_REF | cut -d / -f 3)
24+
echo ::set-output name=version::${tag:1}
2325
2426
- name: Display version
25-
run: echo ${{ steps.get_version.outputs.VERSION }}
27+
run: echo ${{ steps.tag_version.outputs.VERSION }}
2628

2729
- name: Build project
2830
run: python3 setup.py sdist bdist_wheel

0 commit comments

Comments
 (0)