mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
add new scripts
This commit is contained in:
parent
6f0cf8f3e0
commit
3a2e4dfd26
9
scripts/bump-minor.sh
Executable file
9
scripts/bump-minor.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
git fetch origin --tags
|
||||||
|
|
||||||
|
tag=$(git tag -l --sort=-version:refname | head -n1 | awk -F. '{$2++; $3=0; print $1"."$2"."$3}')
|
||||||
|
git tag $tag
|
||||||
|
git push -f origin HEAD
|
||||||
|
echo "sleep 3 seconds for CI to detect tag pushing"
|
||||||
|
sleep 3
|
||||||
|
git push origin $tag
|
12
scripts/bump-patch.sh
Executable file
12
scripts/bump-patch.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user