Change version file from root project to version/version.go

Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
pull/794/head
Flavius Lacatusu 2021-04-23 10:19:10 +02:00
parent 5a505b8857
commit 6883cbaf09
No known key found for this signature in database
GPG Key ID: 3C0A7685C14681A8
6 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ on:
branches:
- main
paths:
- 'VERSION'
- 'version/version.go'
jobs:
build:

View File

@ -16,7 +16,7 @@ on:
branches:
- main
paths:
- 'VERSION'
- 'version/version.go'
jobs:
build:

View File

@ -12,7 +12,7 @@ on:
branches:
- main
paths:
- 'VERSION'
- 'version/version.go'
jobs:
build:

View File

@ -1 +0,0 @@
7.29.0

View File

@ -203,9 +203,10 @@ replaceTag() {
}
updateVersionFile() {
echo "[INFO] updating VERSION file"
echo ${RELEASE} > VERSION
git add VERSION
echo "[INFO] updating version.go file"
# change version/version.go file
sed -i version/version.go -r -e 's#(Version = ")([0-9.]+)(")#\1'"${RELEASE}"'\3#g'
git add version/version.go
git commit -m "Update VERSION to $RELEASE" --signoff
}

View File

@ -1,5 +1,5 @@
package version
var (
Version = "0.0.1"
Version = "7.29.0"
)