bbgo_origin/scripts/bump-patch.sh

13 lines
297 B
Bash
Raw Permalink Normal View History

2024-08-21 06:40:29 +00:00
#!/bin/bash
set -e
git fetch origin
git fetch origin --tags
tag=$(git tag -l --sort=-version:refname | head -n1 | awk -F . '{OFS="."; $NF+=1; print $0}')
git rebase origin/main
git tag $tag
git push -f origin HEAD
echo "sleep 3 seconds for CI to detect tag pushing"
sleep 3
git push origin $tag