Skip to content

Commit

Permalink
Auto-generated summary:
Browse files Browse the repository at this point in the history
  Commit Date:
  File changes:
     auto_commit.sh | 9 ++++++++-
 pyproject.toml | 2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)
  • Loading branch information
Talbot3 committed Mar 8, 2024
1 parent 53317e7 commit 78e5a3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion auto_commit.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/bin/bash
# 获取当前时间戳
timestamp=$(date +"%Y%m%d%H%M%S")

# 更新 pyproject.toml 中的 version
sed -i '' -e "s/version = \".*\"/version = \"$timestamp\"/" pyproject.toml

echo "Version updated to: $timestamp"

# 获取提交日期
last_commit_date=$(date)
last_commit_date=$(timestamp)
# 获取最近的文件变动
file_changes=$(git diff --stat)
# 生成 commit 消息
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 78e5a3d

Please sign in to comment.