Skip to content
Snippets Groups Projects
Commit 01183e15 authored by Manuel Günther's avatar Manuel Günther
Browse files

Improved new_version script

parent 67b09412
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ def main(command_line_options = None): ...@@ -85,7 +85,7 @@ def main(command_line_options = None):
if 'tag' in args.steps: if 'tag' in args.steps:
if args.stable_version is not None and Version(args.stable_version) > Version(current_version): if args.stable_version is not None and Version(args.stable_version) > Version(current_version):
# update stable version on github # update stable version on github
run_commands(args.stable_version, ['git', 'add', 'version.txt'], ['git', 'commit', '-m', 'Increased version to %s [skip ci]' % args.stable_version]) run_commands(args.stable_version, ['git', 'add', 'version.txt'], ['git', 'commit', '-m', 'Increased stable version to %s' % args.stable_version])
else: else:
# assure that we have the current version # assure that we have the current version
args.stable_version = current_version args.stable_version = current_version
...@@ -114,9 +114,8 @@ def main(command_line_options = None): ...@@ -114,9 +114,8 @@ def main(command_line_options = None):
if 'latest' in args.steps: if 'latest' in args.steps:
# update GitHub version to latest version # update GitHub version to latest version
print ("\nSetting latest version '%s'" % args.latest_version) print ("\nSetting latest version '%s'" % args.latest_version)
run_commands(args.latest_version, ['git', 'add', 'version.txt'], ['git', 'commit', '-m', 'Increased version to %s' % args.latest_version], ['git', 'push']) run_commands(args.latest_version, ['git', 'add', 'version.txt'], ['git', 'commit', '-m', 'Increased latest version to %s [skip ci]' % args.latest_version], ['git', 'push'])
if __name__ == '__main__': if __name__ == '__main__':
main() main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment