We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53317e7 commit 78e5a3dCopy full SHA for 78e5a3d
auto_commit.sh
@@ -1,7 +1,14 @@
1
#!/bin/bash
2
+# 获取当前时间戳
3
+timestamp=$(date +"%Y%m%d%H%M%S")
4
+
5
+# 更新 pyproject.toml 中的 version
6
+sed -i '' -e "s/version = \".*\"/version = \"$timestamp\"/" pyproject.toml
7
8
+echo "Version updated to: $timestamp"
9
10
# 获取提交日期
-last_commit_date=$(date)
11
+last_commit_date=$(timestamp)
12
# 获取最近的文件变动
13
file_changes=$(git diff --stat)
14
# 生成 commit 消息
pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "pdf_regenerator"
-version = "0.0.202403081729"
+version = "20240308181159"
authors = [{name="Talbot3",email="[email protected]"}]
description = "PDF Regenerator是一款开源辅助阅读工具,可帮助重新生成 有辅助信息的PDF 文件。"
readme = "README.md"
0 commit comments