Skip to content

Commit

Permalink
Update release-prep.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
georgedias authored Dec 31, 2024
1 parent 96840b1 commit f18bfb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion release-prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ echo
# Pull the main branch content from github
PrintColor "Yellow" "Pull the main branch from github..."
git pull origin main
if [ $? -ne 0 ]; then
PrintColor "Red" " Failed to Pull the main branch from github"
TerminateScript
fi
PrintColor "Green" "Done"
echo

Expand Down Expand Up @@ -102,9 +106,10 @@ while true; do
done
PrintColor "Green" "Setting SAF CLI version to: $next_version"

# 4. Write the updated JSON back to the file
# 4. Update the package.json and VERSION files
updated_json=$(echo "$json_content" | jq --arg version "$next_version" '.version = $version')
echo "$updated_json" > package.json
echo "$next_version" > VERSION

PrintColor "Green" "Done"
echo
Expand Down

0 comments on commit f18bfb6

Please sign in to comment.