From d2bc9ba9f5ab8416df9121aa0c3868e3b2fa57ae Mon Sep 17 00:00:00 2001 From: alonre24 Date: Sun, 5 May 2024 11:43:37 +0300 Subject: [PATCH] update the get version from tag step --- .github/workflows/publish-pypi.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 1c032bd..fdf429a 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -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