Código merge de upstream a strep

This commit is contained in:
Israel Paredes 2024-06-19 03:14:35 +00:00
parent b4dea4ed66
commit 4a23dbac89

30
scripts/weekly-update.sh Normal file
View file

@ -0,0 +1,30 @@
#Es necesario agregar el remoto de core
#git remote add upstream https://git.libreoffice.org/core
set -x
pushd night-v2-updates
git fetch --all --tags
git merge --abort
git reset --hard
git clean -df
git checkout -q -f origin/master
git fetch upstream master
DATE="$(date +%Y-%m-%d)"
git branch -D actualizacion-master-"$DATE"
git checkout -b actualizacion-master-"$DATE"
git merge --no-commit upstream/master
if [ "$?" -eq "0" ]; then
#hacer push de rama
git commit -a -m "actualizacion automatica $DATE"
git push origin actualizacion-master-"$DATE"
else
#enviar mensaje de log de error
echo "ERR_BOT: No actualizO repositorio"
fi
popd