mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-07 16:17:50 +00:00
chore(tools): checkout latest tag on initialization
This commit is contained in:
parent
5a191e79af
commit
6fa1777eb0
@ -46,6 +46,11 @@ check_init() {
|
||||
fi
|
||||
}
|
||||
|
||||
checkout_latest_tag() {
|
||||
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
|
||||
git reset --hard "$tag"
|
||||
}
|
||||
|
||||
init_files() {
|
||||
if $_no_gh; then
|
||||
rm -rf .github
|
||||
@ -100,4 +105,6 @@ while (($#)); do
|
||||
esac
|
||||
done
|
||||
|
||||
checkout_latest_tag
|
||||
|
||||
init_files
|
||||
|
Loading…
x
Reference in New Issue
Block a user