Skip to content

Commit

Permalink
add back version_name set in env for gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewowen committed Feb 8, 2024
1 parent 7f8815f commit 7dc7be0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/mc-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Set version variable
run: |
VERSION_NAME=$(echo "${{ github.ref_name }}" | egrep -o '[0-9]+\.[0-9]+\.[0-9]+')
echo "version_name=$VERSION_NAME" >> "$GITHUB_ENV"
- name: Build
env:
VERSION_NAME: ${{ env.version_name }}
Expand Down

0 comments on commit 7dc7be0

Please sign in to comment.