File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ jobs:
5454 if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
5555 # 手动触发时,从 gradle/libs.versions.toml 读取版本号
5656 VERSION=$(python -c "
57- import re
58- with open('gradle/libs.versions.toml', 'r') as f :
59- content = f.read()
60- match = re.search(r'project\s*=\s*\"([\d\.]+)\"', content)
61- if match :
62- print('v' + match.group(1))
63- else :
64- print('v1.0.0')
65- " )
57+ import re
58+ with open('gradle/libs.versions.toml', 'r') as f:
59+ content = f.read()
60+ match = re.search(r'project\s*=\s*\"([\d\.]+)\"', content)
61+ if match:
62+ print('v' + match.group(1))
63+ else:
64+ print('v1.0.0')
65+ ")
6666 echo "version=$VERSION" >> $GITHUB_OUTPUT
6767 echo "🔧 手动运行,从配置文件读取版本: $VERSION"
6868 else
You can’t perform that action at this time.
0 commit comments