fix: fixed pipeline tagging

This commit is contained in:
2024-10-24 11:38:15 +02:00
parent cfa1da08d3
commit 851573d964

View File

@@ -56,7 +56,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-tags: true fetch-tags: true
ref: ${{ github.ref }} ref: ${{ github.head_ref }}
fetch-depth: 0 fetch-depth: 0
- name: setup git - name: setup git
@@ -74,9 +74,9 @@ jobs:
- name: Create Tag - name: Create Tag
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: | run: |
if [ "${{ github.ref }}" == "refs/heads/master" ]; then if [ "${{ github.head_ref }}" == "master" ]; then
git tag ${{ steps.git_version.outputs.version }} git tag ${{ steps.git_version.outputs.version }}
elif [ "${{ github.ref }}" == "refs/heads/dev" ]; then elif [ "${{ github.head_ref }}" == "dev" ]; then
git tag ${{ steps.git_version.outputs.version }}-rc git tag ${{ steps.git_version.outputs.version }}-rc
fi fi