Skip to content
Snippets Groups Projects
Unverified Commit e8f0b12f authored by Garcia Samuel's avatar Garcia Samuel Committed by GitHub
Browse files

Merge pull request #1380 from alejoe91/release-actions

Retrieve correct tag in test pypi action
parents 340bbdcb 9dddaa37
No related branches found
No related tags found
No related merge requests found
...@@ -20,11 +20,19 @@ jobs: ...@@ -20,11 +20,19 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install setuptools wheel twine build pip install setuptools wheel twine build
pip install . pip install .
- name: Get the tag version
id: get-version
run: |
echo ${GITHUB_REF#refs/tags/}
echo "TAG::${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Test version/tag correspondence - name: Test version/tag correspondence
id: version-check id: version-check
run: | run: |
neo_version=$(python -c "import neo; print(neo.__version__)") neo_version=$(python -c "import neo; print(neo.__version__)")
if [[ ${{ github.event.release.tag_name }} == $neo_version ]]; then tag_version=${{ steps.get-version.outputs.TAG }}
echo $neo_version
echo $tag_version
if [[ $tag_version == $neo_version ]]; then
echo "VERSION_TAG_MATCH=true" >> $GITHUB_OUTPUT echo "VERSION_TAG_MATCH=true" >> $GITHUB_OUTPUT
echo "Version matches tag, proceeding with release to Test PyPI" echo "Version matches tag, proceeding with release to Test PyPI"
else else
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment