Skip to content

Commit

Permalink
update the get version from tag step
Browse files Browse the repository at this point in the history
  • Loading branch information
alonre24 committed May 5, 2024
1 parent 0aae583 commit d2bc9ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ jobs:

- name: get version from tag
id: get_version
run: |
realversion="${GITHUB_REF/refs\/tags\//}"
realversion="${realversion//v/}"
echo "::set-output name=VERSION::$realversion"
env:
TAG: ${{ github.event.release.tag_name }}
run: echo "VERSION=${TAG#v}" >> $GITHUB_OUTPUT

- name: Set up Python 3.7
uses: actions/setup-python@v4
Expand Down

0 comments on commit d2bc9ba

Please sign in to comment.