File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22"""
33semver for Python
4- Based on the Lua version from Boilerplate_ !Base/src/lib/Semver.lua
4+ Based on the Lua version from MY_ !Base/src/lib/Semver.lua
55Supports npm-style version constraints like ^, ~, *, etc.
66"""
77
Original file line number Diff line number Diff line change 6060 id : calculate_version
6161 run : |
6262 VERSION_TYPE="${{ github.event.inputs.version_type }}"
63- CURRENT_VERSION=$(grep "_VERSION_.*'.*'" Boilerplate_ !Base/src/lib/Base.lua | sed -E "s/.*'(.*)'.*/\1/")
63+ CURRENT_VERSION=$(grep "_VERSION_.*'.*'" MY_ !Base/src/lib/Base.lua | sed -E "s/.*'(.*)'.*/\1/")
6464
6565 # 验证当前版本格式
6666 if ! echo "$CURRENT_VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then
@@ -103,8 +103,8 @@ jobs:
103103 run : |
104104 DATE=$(date +%Y%m%d)
105105 NEW_VERSION="${{ steps.calculate_version.outputs.new_version }}"
106- sed -i "s/\(local _BUILD_\)\( *\)\(=\) *'[^']*'/\1\2\3 '${DATE}'/" Boilerplate_ !Base/src/lib/Base.lua
107- sed -i "s/\(local _VERSION_\)\( *\)\(=\) *'[^']*'/\1\2\3 '${NEW_VERSION}'/" Boilerplate_ !Base/src/lib/Base.lua
106+ sed -i "s/\(local _BUILD_\)\( *\)\(=\) *'[^']*'/\1\2\3 '${DATE}'/" MY_ !Base/src/lib/Base.lua
107+ sed -i "s/\(local _VERSION_\)\( *\)\(=\) *'[^']*'/\1\2\3 '${NEW_VERSION}'/" MY_ !Base/src/lib/Base.lua
108108
109109 - name : Update AssertVersion calls in Lua files
110110 run : |
@@ -168,7 +168,7 @@ jobs:
168168 }
169169
170170 # 处理更新日志并保存到临时变量
171- PROCESSED_CHANGELOG="## Boilerplate插件集 v${NEW_VERSION}"$'\n\n'"$(process_changelog "$CHANGELOG")"
171+ PROCESSED_CHANGELOG="## 茗伊插件集 v${NEW_VERSION}"$'\n\n'"$(process_changelog "$CHANGELOG")"
172172
173173 # 输出到 TMPFILE
174174 echo "$PROCESSED_CHANGELOG" >> $TMPFILE
You can’t perform that action at this time.
0 commit comments