From f11b8b886442e0397ab02c550e2f2f3069ca2b92 Mon Sep 17 00:00:00 2001 From: Conrad Date: Thu, 24 Oct 2024 12:00:19 +0200 Subject: [PATCH] fix: alternative attempt on the fix --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ae1897..0a3ed56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,10 +71,16 @@ jobs: with: minor-identifier: "feat:" major-identifier: "breaking:" + release-branch: ${{ github.head_ref }} - name: Create Tag - if: github.head_ref == 'master' || github.head_ref == 'dev' - run: git tag ${{ steps.git_version.outputs.version }} + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' + run: | + if [ "${{ github.ref }}" == "refs/heads/master" ]; then + git tag ${{ steps.git_version.outputs.version }} + elif [ "${{ github.ref }}" == "refs/heads/dev" ]; then + git tag ${{ steps.git_version.outputs.version }}-rc + fi - name: Push tag run: git push origin ${{ steps.git_version.outputs.version }}