diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml
index e8e70fade3511d56cbaf74351f989b71b420572d..ebe8588c7ed644e7e6b43eabd56838a6cbb9a623 100644
--- a/.github/workflows/version.yml
+++ b/.github/workflows/version.yml
@@ -13,7 +13,7 @@ jobs:
       - name: Get current version
         uses: dolittle/write-version-to-file-action@v2
         with:
-          version: ${{ github.ref_name }}
+          version: ${{ GITHUB_REF }}
           path: ./.osuny-theme-version
           user-email: osuny@noesya.coop
           user-name: osuny-bot