Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix changelog

Louis Beaumont84433d44b8ba
diff --git a/.github/scripts/generate_changelog_md.sh b/.github/scripts/generate_changelog_md.sh
index a25260652..9292bd3e7 100755
--- a/.github/scripts/generate_changelog_md.sh
+++ b/.github/scripts/generate_changelog_md.sh
@@ -25,7 +25,7 @@ COMMIT_CURRENT_RELEASE=$(git log -1 --format="%H")
COMMIT_CURRENT_RELEASE=${2:-$COMMIT_CURRENT_RELEASE}
# If both are equal, then there's nothing to add to the changelog
-if [ "$COMMIT_LAST_RELEASE" == "$COMMIT_CURRENT_RELEASE" ]; then
+if [ "$COMMIT_LAST_RELEASE" == "$COMMIT_CURRENT_RELEASE" ] || [ "$COMMIT_LAST_RELEASE" == "" ] || [ "$COMMIT_CURRENT_RELEASE" == "" ]; then
echo "No new commits to add to the changelog"
echo "CHANGELOG_GENERATED=0" >> $GITHUB_ENV
exit 0