Replace git pull with fetech and reset

This commit is contained in:
2025-05-04 20:51:41 +00:00
parent b498b43219
commit b9d34dd953

View File

@@ -19,7 +19,8 @@ jobs:
git config --global user.email "actions@local"
git config --global --add safe.directory ${BLOG_FOLDER}
git submodule update --init --recursive
git pull
git fetch origin
git reset --hard origin/main
- name: Get current Hugo version
run: echo "current_version=$(${BLOG_FOLDER}/bin/hugo version | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+')" | tee -a $GITEA_ENV