From 149f922fb31a948f6c826fffa8a79b6451b91306 Mon Sep 17 00:00:00 2001 From: Scott Anderson <662325+scottanderson@users.noreply.github.com> Date: Sat, 28 Jun 2025 03:41:50 -0400 Subject: [PATCH] bug: Fix version number and changelog (#1293) ## Description: Fix missing version number and changelog in branch deploys. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors --- build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index d14e88141..ae2561330 100755 --- a/build.sh +++ b/build.sh @@ -74,8 +74,12 @@ echo "Metadata file: $METADATA_FILE" GIT_COMMIT=$(git rev-parse HEAD 2> /dev/null || echo "unknown") echo "Git commit: $GIT_COMMIT" -echo "$CHANGELOG_MD" > resources/changelog.md -echo "$VERSION_TXT" > resources/version.txt +if [ -n "$CHANGELOG_MD" ]; then + echo "$CHANGELOG_MD" > resources/changelog.md +fi +if [ -n "$VERSION_TXT" ]; then + echo "$VERSION_TXT" > resources/version.txt +fi docker buildx build \ --platform linux/amd64 \