File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,21 @@ if [ "${skip_git_checkout}" == 0 ]; then
139
139
git clean -fdx
140
140
git pull origin ${git_treeish} || /bin/true
141
141
142
+ # Validate version
143
+ correct_version=$( python3 << EOF
144
+ import version;
145
+ if hasattr(version, "patch"):
146
+ git_version = f"{version.major}.{version.minor}.{version.patch}-{version.status}"
147
+ else:
148
+ git_version = f"{version.major}.{version.minor}-{version.status}"
149
+ print(git_version == "${godot_version} ")
150
+ EOF
151
+ )
152
+ if [[ " $correct_version " != " True" ]]; then
153
+ echo " Version in version.py doesn't match the passed ${godot_version} ."
154
+ exit 0
155
+ fi
156
+
142
157
git archive --format=tar $git_treeish --prefix=godot-${godot_version} / | gzip > ../godot.tar.gz
143
158
popd
144
159
fi
You can’t perform that action at this time.
0 commit comments