Skip to content

Commit

Permalink
Fix CD second attempt, forgot to escape message, also should not run … (
Browse files Browse the repository at this point in the history
  • Loading branch information
CyonAlexRDX committed Feb 20, 2024
1 parent 8203f9a commit f54c581
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/ios/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand All @@ -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`
Expand Down

0 comments on commit f54c581

Please sign in to comment.