Skip to content

Commit

Permalink
chore: get major version
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverEllipsis committed Jan 8, 2025
1 parent 7da237e commit 643a11b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ jobs:
id: check_tag
run: |
TAG=$(echo ${GITHUB_REF} | sed 's|refs/tags/||')
MAJOR=$(echo ${TAG} | sed -E 's|^v([0-9]+)\..*|\1|')
MAJOR_TAG="v${MAJOR}"
echo "TAG=${TAG}" >> $GITHUB_ENV
echo "VERSION_MAJOR=${TAG%%.*}" >> $GITHUB_ENV
echo "MAJOR_TAG=${MAJOR_TAG}" >> $GITHUB_ENV
echo "Current TAG: ${TAG}"
echo "Major Version: ${{ env.VERSION_MAJOR }}"
echo "Major TAG: ${MAJOR_TAG}"
- name: Build Docs for Beta
if: contains(env.TAG, 'beta') == true
Expand Down

0 comments on commit 643a11b

Please sign in to comment.