fix(ci): Add version and tagged release variables to release workflow (#1391)

This commit is contained in:
Eric 2026-01-28 17:09:17 +11:00 committed by GitHub
parent 1c970e9ff6
commit 52d27485cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,6 +170,16 @@ jobs:
needs: build
if: success() || failure()
steps:
- name: Set version variable
shell: bash
run: |
if [[ "${{ github.ref_type }}" == "tag" ]]; then
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
echo "TAGGED_RELEASE=true" >> $GITHUB_ENV
else
echo "VERSION=${GITHUB_SHA::7}" >> $GITHUB_ENV
echo "TAGGED_RELEASE=false" >> $GITHUB_ENV
fi
- name: Release - Download binaries
uses: actions/download-artifact@v4
with: