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
|
_check_init
|
||||||
}
|
}
|
||||||
|
|
||||||
checkout_latest_tag() {
|
checkout_latest_release() {
|
||||||
tag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
|
hash=$(git log --grep="chore(release):" -1 --pretty="%H")
|
||||||
git reset --hard "$tag"
|
git reset --hard "$hash"
|
||||||
}
|
}
|
||||||
|
|
||||||
init_files() {
|
init_files() {
|
||||||
|
@ -114,7 +114,7 @@ commit() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
check_env
|
check_env
|
||||||
checkout_latest_tag
|
checkout_latest_release
|
||||||
init_files
|
init_files
|
||||||
commit
|
commit
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue