From 6688f809eb0a13c15c4d0b4d2439df997696db27 Mon Sep 17 00:00:00 2001
From: reggie <reggie@latte.to>
Date: Wed, 2 Oct 2024 02:28:32 -0500
Subject: [PATCH] Use github.ref_name instead

---
 .github/workflows/release.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a3ad16b8..569a3a31 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -30,7 +30,7 @@ jobs:
       - name: Get version info
         id: version_info
         run: |
-          echo "build_version=r$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT
+          echo "build_version=${{ github.ref_name }}" >> $GITHUB_OUTPUT
         shell: bash
 
       - name: Create tag
@@ -79,7 +79,7 @@ jobs:
       - name: Get version info
         id: version_info
         run: |
-          echo "build_version=r$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT
+          echo "build_version=${{ github.ref_name }}" >> $GITHUB_OUTPUT
           echo "git_short_hash=$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT
         shell: bash
 
@@ -177,7 +177,7 @@ jobs:
       - name: Get version info
         id: version_info
         run: |
-          echo "build_version=r$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT
+          echo "build_version=${{ github.ref_name }}" >> $GITHUB_OUTPUT
           echo "git_short_hash=$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT
 
       #- name: Configure for release