From 714178d68fc341cc1195ce5ed5c4af24a59ecacd Mon Sep 17 00:00:00 2001 From: Conrad Date: Thu, 24 Oct 2024 12:22:45 +0200 Subject: [PATCH] fix: fixed naming of pre-release commits --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e66e65..87e69dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,8 +80,9 @@ jobs: git tag ${{ steps.git_version.outputs.version }} git push origin ${{ steps.git_version.outputs.version }} elif [ "${{ github.head_ref }}" == "dev" ]; then - git tag ${{ steps.git_version.outputs.version }}-rc.${{ github.sha }} - git push origin ${{ steps.git_version.outputs.version }}-rc.${{ github.sha }} + calculatedSha=$(git rev-parse --short ${{ github.sha }}) + git tag ${{ steps.git_version.outputs.version }}-rc${calculatedSha} + git push origin ${{ steps.git_version.outputs.version }}-rc${calculatedSha} fi - name: Set up Python