diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5b5d810..2044ecd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,7 +36,7 @@ jobs: steps: - name: Set Release Version run: | - RELEASE_VERSION=${GITHUB_REF#refs/tags/v} + RELEASE_VERSION=${TAG#v} if [[ $RELEASE_VERSION =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)?$ ]]; then echo "PACKAGE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV else @@ -45,6 +45,8 @@ jobs: echo 'Please update your tag to match the expected regex pattern' exit 1 fi + env: + TAG: ${{ github.event.release.tag_name }} - name: Checkout uses: actions/checkout@v6