Skip to content

Commit e8f0b12

Browse files
authored
Merge pull request #1380 from alejoe91/release-actions
Retrieve correct tag in test pypi action
2 parents 340bbdc + 9dddaa3 commit e8f0b12

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/publish-to-pypi-test.yml

+9-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)