You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove automatic version bumping from README files and switch to unversioned git URLs
Unity doesn't update users who install with a fixed version
- Remove sed commands that update version references in README.md and README-zh.md
- Update git add command to exclude README files from version bump commits
- Change README installation URLs from versioned (#v8.1.0) to unversioned (no tag)
- Add documentation showing how to use tagged URLs for users who need fixed versions
Copy file name to clipboardExpand all lines: .github/workflows/bump-version.yml
+1-9Lines changed: 1 addition & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -70,14 +70,6 @@ jobs:
70
70
echo "Updating Server/pyproject.toml to $NEW_VERSION"
71
71
sed -i '0,/^version = ".*"/s//version = "'"$NEW_VERSION"'"/' "Server/pyproject.toml"
72
72
73
-
echo "Updating README.md version references to v$NEW_VERSION"
74
-
sed -i 's|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v[0-9]\+\.[0-9]\+\.[0-9]\+|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v'"$NEW_VERSION"'|g' README.md
75
-
sed -i 's|git+https://github.com/CoplayDev/unity-mcp@v[0-9]\+\.[0-9]\+\.[0-9]\+#subdirectory=Server|git+https://github.com/CoplayDev/unity-mcp@v'"$NEW_VERSION"'#subdirectory=Server|g' README.md
76
-
77
-
echo "Updating README-zh.md version references to v$NEW_VERSION"
78
-
sed -i 's|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v[0-9]\+\.[0-9]\+\.[0-9]\+|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v'"$NEW_VERSION"'|g' README-zh.md
79
-
sed -i 's|git+https://github.com/CoplayDev/unity-mcp@v[0-9]\+\.[0-9]\+\.[0-9]\+#subdirectory=Server|git+https://github.com/CoplayDev/unity-mcp@v'"$NEW_VERSION"'#subdirectory=Server|g' README-zh.md
80
-
81
73
echo "Updating Server/README.md version references to v$NEW_VERSION"
82
74
sed -i 's|git+https://github.com/CoplayDev/unity-mcp@v[0-9]\+\.[0-9]\+\.[0-9]\+#subdirectory=Server|git+https://github.com/CoplayDev/unity-mcp@v'"$NEW_VERSION"'#subdirectory=Server|g' Server/README.md
0 commit comments