Replace git pull with fetech and reset
All checks were successful
Deploy / Deploy (push) Successful in 7s

This commit is contained in:
Vezpi 2025-05-04 20:51:41 +00:00
parent 775f7ce58a
commit cb09863b1a

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