File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ enforce_latest_code() {
2727 echo " Please stash your changes and try again."
2828 exit 1
2929 fi
30+ git fetch --quiet origin main
31+ if [[ " $( git rev-parse HEAD) " != " $( git rev-parse origin/main) " ]]; then
32+ echo " ERROR: This script was not run from the latest code from origin/main."
33+ echo " Make sure to update your git branch with the latest from main and try again."
34+ exit 1
35+ fi
3036}
3137
3238# Function to validate the version number format x.y.z(-beta.w)
@@ -76,7 +82,7 @@ update_and_validate_build() {
7682 done
7783}
7884
79- # Ensure that the current working directory is clean
85+ # Ensure that the current working directory is clean and release is made of latest main
8086enforce_latest_code
8187
8288# Update and validate the version number
You can’t perform that action at this time.
0 commit comments