We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 340bbdc + 9dddaa3 commit e8f0b12Copy full SHA for e8f0b12
.github/workflows/publish-to-pypi-test.yml
@@ -20,11 +20,19 @@ jobs:
20
python -m pip install --upgrade pip
21
pip install setuptools wheel twine build
22
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
28
- name: Test version/tag correspondence
29
id: version-check
30
run: |
31
neo_version=$(python -c "import neo; print(neo.__version__)")
- 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
36
echo "VERSION_TAG_MATCH=true" >> $GITHUB_OUTPUT
37
echo "Version matches tag, proceeding with release to Test PyPI"
38
else
0 commit comments