diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3e30d162..8af95f5b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,7 +33,7 @@ jobs: steps: - name: Set Release Version run: | - RELEASE_VERSION=${GITHUB_REF#refs/tags/v} + RELEASE_VERSION=${TAG#v} re=[0-9]+\.[0-9]+\.[0-9]+ if [[ $RELEASE_VERSION =~ $re ]]; then echo "GEM_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV @@ -43,9 +43,11 @@ 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@v5 + uses: actions/checkout@v6 - name: Setup Ruby uses: ruby/setup-ruby@v1