Push tags correctly
Some checks failed
Build on push / build-api (push) Has been cancelled
Build on push / build-redirector (push) Has been cancelled
Build on push / build-web (push) Has been cancelled
Build on push / prepare (push) Has been cancelled

This commit is contained in:
Sven Heidemann 2025-03-11 23:25:09 +01:00
parent f8fc2cfcc6
commit e4b349d283
2 changed files with 8 additions and 4 deletions

View File

@ -17,19 +17,21 @@ jobs:
- name: Get Date and Build Number
run: |
git fetch
git tag
DATE=$(date +'%Y.%m.%d')
git fetch --tags
TAG_COUNT=$(git tag -l "${DATE}.*" | wc -l)
BUILD_NUMBER=$(($TAG_COUNT + 1))
BUILD_VERSION="${DATE}.${BUILD_NUMBER}-dev"
echo "$BUILD_VERSION" > version.txt
echo "VERSION $BUILD_VERSION"
- name: Create Git Tag for Build
run: |
git config user.name "ci"
git config user.email "dev@sh-edraft.de"
git tag ${{ env.BUILD_VERSION }}
git push origin ${{ env.BUILD_VERSION }} --tags
git push origin --tags
- name: Upload build version artifact
uses: actions/upload-artifact@v3

View File

@ -17,19 +17,21 @@ jobs:
- name: Get Date and Build Number
run: |
git fetch
git tag
DATE=$(date +'%Y.%m.%d')
git fetch --tags
TAG_COUNT=$(git tag -l "${DATE}.*" | wc -l)
BUILD_NUMBER=$(($TAG_COUNT + 1))
BUILD_VERSION="${DATE}.${BUILD_NUMBER}"
echo "$BUILD_VERSION" > version.txt
echo "VERSION $BUILD_VERSION"
- name: Create Git Tag for Build
run: |
git config user.name "ci"
git config user.email "dev@sh-edraft.de"
git tag ${{ env.BUILD_VERSION }}
git push origin ${{ env.BUILD_VERSION }} --tags
git push origin --tags
- name: Upload build version artifact
uses: actions/upload-artifact@v3