From a849e5c47214e2cecfa4a8f19d9d033fe01e80f9 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 30 Aug 2024 08:53:58 +0200 Subject: [PATCH] publish_new_release.sh: add git pull --- publish_new_release.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/publish_new_release.sh b/publish_new_release.sh index 6c7ab7b..472561a 100755 --- a/publish_new_release.sh +++ b/publish_new_release.sh @@ -24,6 +24,11 @@ then apt install -y ${#MISSING_PACKAGES[@]} fi +cd $ROOT_DIR +echo "Update git repo:" +git pull +echo "done." + LATEST="$1" if [ -z "$LATEST" ] @@ -40,7 +45,6 @@ echo "Press [enter] to create and publish this new release" read echo "Create new release..." -cd $ROOT_DIR echo -n "$LATEST" > last_release.txt /usr/bin/git add last_release.txt /usr/bin/git commit -m "Release $LATEST"