publish_new_release.sh: add git pull

This commit is contained in:
Benjamin Renard 2024-08-30 08:53:58 +02:00
parent e36c833efa
commit a849e5c472
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -24,6 +24,11 @@ then
apt install -y ${#MISSING_PACKAGES[@]} apt install -y ${#MISSING_PACKAGES[@]}
fi fi
cd $ROOT_DIR
echo "Update git repo:"
git pull
echo "done."
LATEST="$1" LATEST="$1"
if [ -z "$LATEST" ] if [ -z "$LATEST" ]
@ -40,7 +45,6 @@ echo "Press [enter] to create and publish this new release"
read read
echo "Create new release..." echo "Create new release..."
cd $ROOT_DIR
echo -n "$LATEST" > last_release.txt echo -n "$LATEST" > last_release.txt
/usr/bin/git add last_release.txt /usr/bin/git add last_release.txt
/usr/bin/git commit -m "Release $LATEST" /usr/bin/git commit -m "Release $LATEST"