perf(tools): avoid initialization interruption in single branch forks (#992)
This commit is contained in:
parent
6f6e309741
commit
e90461aa3c
1 changed files with 4 additions and 4 deletions
|
@ -77,9 +77,9 @@ check_env() {
|
|||
_check_init
|
||||
}
|
||||
|
||||
checkout_latest_tag() {
|
||||
tag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
|
||||
git reset --hard "$tag"
|
||||
checkout_latest_release() {
|
||||
hash=$(git log --grep="chore(release):" -1 --pretty="%H")
|
||||
git reset --hard "$hash"
|
||||
}
|
||||
|
||||
init_files() {
|
||||
|
@ -114,7 +114,7 @@ commit() {
|
|||
|
||||
main() {
|
||||
check_env
|
||||
checkout_latest_tag
|
||||
checkout_latest_release
|
||||
init_files
|
||||
commit
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue