Push tags correctly
This commit is contained in:
parent
f8fc2cfcc6
commit
0be8aaa8fb
@ -18,7 +18,7 @@ jobs:
|
||||
- name: Get Date and Build Number
|
||||
run: |
|
||||
DATE=$(date +'%Y.%m.%d')
|
||||
git fetch --tags
|
||||
git fetch
|
||||
TAG_COUNT=$(git tag -l "${DATE}.*" | wc -l)
|
||||
BUILD_NUMBER=$(($TAG_COUNT + 1))
|
||||
BUILD_VERSION="${DATE}.${BUILD_NUMBER}-dev"
|
||||
@ -29,7 +29,7 @@ jobs:
|
||||
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
|
||||
|
@ -18,7 +18,7 @@ jobs:
|
||||
- name: Get Date and Build Number
|
||||
run: |
|
||||
DATE=$(date +'%Y.%m.%d')
|
||||
git fetch --tags
|
||||
git fetch
|
||||
TAG_COUNT=$(git tag -l "${DATE}.*" | wc -l)
|
||||
BUILD_NUMBER=$(($TAG_COUNT + 1))
|
||||
BUILD_VERSION="${DATE}.${BUILD_NUMBER}"
|
||||
@ -29,7 +29,7 @@ jobs:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user