Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Apr 15, 2024
1 parent 0c1c9b6 commit df9e00b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions git-add-and-commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ def get_uncommit_changes():


def update_version():
version_template = '''local M = {{}}
M.last_updated_time = '{}.{:02d}.{:02d}'
return M
version_template = '''
return {{
version = function()
return "{}.{:02d}.{:02d}"
end,
}}
'''
now = datetime.datetime.now()
version_str = version_template.format(now.year, now.month, now.day)
with open(os.path.join(repo_home(), 'lua/ht/version.lua'), 'w') as fp:
with open(os.path.join(repo_home(), 'lua/dotvim/version.lua'), 'w') as fp:
fp.write(version_str)


Expand Down
3 changes: 2 additions & 1 deletion lua/dotvim/version.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

return {
version = function()
return "2024.03.30"
return "2024.04.15"
end,
}

0 comments on commit df9e00b

Please sign in to comment.