Skip to content

Commit 306782f

Browse files
fix grammar error in yaml
1 parent 3df21b9 commit 306782f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)