File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,19 @@ jobs:
2020 python -m pip install --upgrade pip
2121 pip install setuptools wheel twine build
2222 pip install .
23+ - name : Get the tag version
24+ id : get-version
25+ run : |
26+ echo ${GITHUB_REF#refs/tags/}
27+ echo "TAG::${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
2328 - name : Test version/tag correspondence
2429 id : version-check
2530 run : |
2631 neo_version=$(python -c "import neo; print(neo.__version__)")
27- if [[ ${{ github.event.release.tag_name }} == $neo_version ]]; then
32+ tag_version=${{ steps.get-version.outputs.TAG }}
33+ echo $neo_version
34+ echo $tag_version
35+ if [[ $tag_version == $neo_version ]]; then
2836 echo "VERSION_TAG_MATCH=true" >> $GITHUB_OUTPUT
2937 echo "Version matches tag, proceeding with release to Test PyPI"
3038 else
You can’t perform that action at this time.
0 commit comments