Set build version to 0 if build version is ''

Contributes to CURA-9365
This commit is contained in:
jellespijker 2022-07-05 14:13:05 +02:00
parent 68a79684fd
commit fd7c5abdc0

View file

@ -319,7 +319,7 @@ echo "CURA_VERSION_FULL={{ cura_version_full }}" >> ${{ env_prefix }}GITHUB_ENV
""").render(cura_version_major = cura_version.major,
cura_version_minor = cura_version.minor,
cura_version_patch = cura_version.patch,
cura_version_build = cura_version.build,
cura_version_build = cura_version.build if cura_version.build != "" else "0",
cura_version_full = self.version,
env_prefix = env_prefix)