Skip to content

Commit 6fa1777

Browse files
committed
chore(tools): checkout latest tag on initialization
1 parent 5a191e7 commit 6fa1777

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/init

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ check_init() {
4646
fi
4747
}
4848

49+
checkout_latest_tag() {
50+
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
51+
git reset --hard "$tag"
52+
}
53+
4954
init_files() {
5055
if $_no_gh; then
5156
rm -rf .github
@@ -100,4 +105,6 @@ while (($#)); do
100105
esac
101106
done
102107

108+
checkout_latest_tag
109+
103110
init_files

0 commit comments

Comments
 (0)