From e1e43b6480226420cc7fa0c027d74a4647e92005 Mon Sep 17 00:00:00 2001 From: Alexander Cyon Date: Tue, 20 Feb 2024 09:50:13 +0100 Subject: [PATCH] Fix CD second attempt, forgot to escape message, also should not run precommit hooks. --- scripts/ios/release.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ios/release.sh b/scripts/ios/release.sh index 08822e01b..59946ceec 100755 --- a/scripts/ios/release.sh +++ b/scripts/ios/release.sh @@ -20,7 +20,7 @@ function last_tag() { local out=`git tag --sort=taggerdate | tail -1` echo $out } -echo "🚢 🏷️ Last tag: $(last_tag)" +echo "🚢 🏷️ Last tag: $(last_tag)" # one liner from: https://stackoverflow.com/a/8653732 NEXT_TAG=$(echo $(last_tag) | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}') @@ -36,7 +36,8 @@ XCFRAME_ZIP_PATH=`echo "$OUTPUT_OF_BUILD" | cut -d ";" -f 2` || exit $? echo "🚢 CHECKSUM: $CHECKSUM" echo "🚢 XCFRAME_ZIP_PATH: $XCFRAME_ZIP_PATH" -`git commit -m "Release of '$NEXT_TAG' (updated Package.swift with new checksum and path to zip on Github). This commit is not merged into main/develop branch (and need not be)."` +GIT_COMMIT_CMD="git commit -m \"Release of '$NEXT_TAG' (updated Package.swift with new checksum and path to zip on Github). This commit is not merged into main/develop branch (and need not be).\" --no-verify" +eval $GIT_COMMIT_CMD `git tag $NEXT_TAG` echo "🚢 🏷️ 📡 Pushing tag: $(NEXT_TAG), but only tag, not commit." `git push origin $NEXT_TAG`