Replace check out repository

This commit is contained in:
Vezpi 2025-05-02 21:08:06 +02:00
parent d0d93b6d46
commit fd9d880c1b

View File

@ -13,7 +13,12 @@ jobs:
run: apt update && apt install -y jq run: apt update && apt install -y jq
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 run: |
cd ${BLOG_FOLDER}
git config --global user.name "Gitea Actions"
git config --global user.email "actions@local"
git config --global --add safe.directory ${BLOG_FOLDER}
git pull
- name: Get current Hugo version - 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 run: echo "current_version=$(${BLOG_FOLDER}/bin/hugo version | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+')" | tee -a $GITEA_ENV