CI: use the weekly build tag in title bar of main window.
This commit is contained in:
committed by
Kacper Donat
parent
2380f9153d
commit
32debd36e8
@@ -11,9 +11,12 @@ import SubWCRev
|
||||
|
||||
gitInfo = SubWCRev.GitControl()
|
||||
gitInfo.extractInfo("","")
|
||||
gitDescription = os.environ['BUILD_TAG']
|
||||
|
||||
i = open("src/Build/Version.h.cmake")
|
||||
content = []
|
||||
for line in i.readlines():
|
||||
line = line.replace("-${PACKAGE_VERSION_SUFFIX}",gitDescription)
|
||||
line = line.replace("${PACKAGE_WCREF}",gitInfo.rev)
|
||||
line = line.replace("${PACKAGE_WCDATE}",gitInfo.date)
|
||||
line = line.replace("${PACKAGE_WCURL}",gitInfo.url)
|
||||
@@ -36,6 +39,6 @@ p = subprocess.Popen(["git", "-c", "user.name='github-actions[bot]'", "-c", "use
|
||||
"commit", "-a", "-m", "add git information"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
||||
out, err = p.communicate()
|
||||
|
||||
|
||||
print(out.decode())
|
||||
print(err.decode())
|
||||
|
||||
Reference in New Issue
Block a user