From a8df29547caf2c9bf15ab08f47b969b6ba9fde01 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 18 Nov 2020 14:09:58 +0100 Subject: do_release.sh: Make push logic more verbose --- tools/do_release.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/do_release.sh b/tools/do_release.sh index 6494cac..78e76b7 100644 --- a/tools/do_release.sh +++ b/tools/do_release.sh @@ -17,7 +17,7 @@ TIMESTAMP=${TIMESTAMP:-$(date +%y-%m-%d)} make clean all git add svd mx_mcu_db prog_db chip_db -git commit --allow-empty -m "STM32Square Auto-Release $TIMESTAMP +git commit -q --allow-empty -m "STM32Square Auto-Release $TIMESTAMP This is an automatic release commit. Generation was invoked from: $RELEASE_TRIGGER @@ -67,6 +67,9 @@ git tag -a "v-productdb-$PRODUCTDB_BUILD" -m "Auto-release for STM32 Product Dat git tag -a "v-productdb-$PRODUCTDB_VERSION" -m "Auto-release for STM32 Product Database version $PRODUCTDB_VERSION" || true if [ ! -z ${GITLAB_ACCESS_TOKEN+x} ]; then + echo "Access token found, pushing commit and tags" git remote add -f ci-origin https://oauth2:${GITLAB_ACCESS_TOKEN}@gitlab.com/${CI_PROJECT_PATH} - git push --tags --force ci-origin + git push --tags --force ci-origin release +else + echo "No access token found. Not pushing anything." fi -- cgit