mirror of
https://github.com/folbricht/routedns.git
synced 2026-01-06 01:30:00 -06:00
Update version_bump.yaml
This commit is contained in:
3
.github/workflows/version_bump.yaml
vendored
3
.github/workflows/version_bump.yaml
vendored
@@ -38,7 +38,7 @@ jobs:
|
||||
git config user.email github-actions@github.com
|
||||
git pull origin HEAD:${{ github.event.pull_request.head.sha }} --rebase
|
||||
export CURRENT_BUILD_VERSION=$(grep BuildVersion version.go | awk -F= '{print $2}' | cut -d'"' -f 2-2 )
|
||||
export CURRENT_BUILD_NUMBER=$(grep BuildVersion version.go | awk -F= '{print $2}' | cut -d'"' -f 2-2 )
|
||||
export CURRENT_BUILD_NUMBER=$(grep BuildNumber version.go | awk -F= '{print $2}' | cut -d'"' -f 2-2 )
|
||||
export CURRENT_BUILD_TIME=$(date)
|
||||
export PR_CHANGE_BUILD_VERION=$(echo $CURRENT_BUILD_VERSION | awk -F. '{print $3}' )
|
||||
export OLD_BUILD_VERION_PART=$(echo $CURRENT_BUILD_VERSION | awk -F. '{print $1"."$2}')
|
||||
@@ -50,4 +50,5 @@ jobs:
|
||||
git add .
|
||||
git commit -m "Automatic Version bump from GitHub Action at: `date` $CHANGE_BUILD_VERSION"
|
||||
git tag -a $CHANGE_BUILD_VERSION -m $CHANGE_BUILD_NUMBER $CHANGE_BUILD_VERSION
|
||||
git rebase --skip
|
||||
git push origin HEAD:master
|
||||
|
||||
Reference in New Issue
Block a user