|
@ -93,11 +93,11 @@ prompt_yes_no() { |
|
|
function commit_and_push { |
|
|
function commit_and_push { |
|
|
echo -e "${green_color}Committing new release $FINAL_VERSION...${color_reset}" |
|
|
echo -e "${green_color}Committing new release $FINAL_VERSION...${color_reset}" |
|
|
git add docker/docker-compose.yaml setup.py sapl/settings.py sapl/templates/base.html |
|
|
git add docker/docker-compose.yaml setup.py sapl/settings.py sapl/templates/base.html |
|
|
git changelog --tag $FINAL_VERSION --prune-old -x > latest_changes.tmp |
|
|
git changelog --tag $FINAL_VERSION --prune-old -x > latest_changes.md |
|
|
cat /tmp/latest_changes.md CHANGES.md > CHANGES.tmp |
|
|
cat latest_changes.md CHANGES.md > CHANGES.tmp |
|
|
mv CHANGES.tmp CHANGES.md |
|
|
mv CHANGES.tmp CHANGES.md |
|
|
git add CHANGES.md |
|
|
git add CHANGES.md |
|
|
rm latest_changes.tmp |
|
|
rm latest_changes.md |
|
|
|
|
|
|
|
|
if prompt_yes_no "${green_color}Do you want to commit SAPL $FINAL_VERSION release locally?${reset_color}"; then |
|
|
if prompt_yes_no "${green_color}Do you want to commit SAPL $FINAL_VERSION release locally?${reset_color}"; then |
|
|
git commit -m "Release: $FINAL_VERSION" |
|
|
git commit -m "Release: $FINAL_VERSION" |
|
|