Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion internal/release/scripts/prep-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ enforce_latest_code() {
echo "Please stash your changes and try again."
exit 1
fi
git fetch --quiet origin main
if [[ "$(git rev-parse HEAD)" != "$(git rev-parse origin/main)" ]]; then
echo "ERROR: This script was not run from the latest code from origin/main."
echo "Make sure to update your git branch with the latest from main and try again."
exit 1
fi
}

# Function to validate the version number format x.y.z(-beta.w)
Expand Down Expand Up @@ -76,7 +82,7 @@ update_and_validate_build() {
done
}

# Ensure that the current working directory is clean
# Ensure that the current working directory is clean and release is made off of latest main
enforce_latest_code

# Update and validate the version number
Expand Down