aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2020-11-18 14:09:58 +0100
committerjaseg <git@jaseg.de>2020-11-18 14:09:58 +0100
commita8df29547caf2c9bf15ab08f47b969b6ba9fde01 (patch)
tree7569996402c1ce50f0cc75947c2827ecc2dc6860
parent1e656525ed8e8b7497ba4d7a583d3ea0d056ed0f (diff)
downloadstm32square-a8df29547caf2c9bf15ab08f47b969b6ba9fde01.tar.gz
stm32square-a8df29547caf2c9bf15ab08f47b969b6ba9fde01.tar.bz2
stm32square-a8df29547caf2c9bf15ab08f47b969b6ba9fde01.zip
do_release.sh: Make push logic more verbose
-rw-r--r--tools/do_release.sh7
1 files changed, 5 insertions, 2 deletions
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