fix: alternative attempt on the fix

This commit is contained in:
2024-10-24 12:00:19 +02:00
parent 983553e97a
commit f11b8b8864

View File

@@ -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 }}