Split commands for better readability
Some checks failed
Deploy / Deploy (push) Failing after 3s

This commit is contained in:
Vezpi 2025-05-07 22:29:35 +02:00
parent 36708ec00d
commit 8af88c96a9

View File

@ -20,10 +20,14 @@ jobs:
git reset --hard origin/main git reset --hard origin/main
- name: Get current Hugo version - name: Get current Hugo version
run: echo "current_version=$(${BLOG_FOLDER}/hugo version | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+')" | tee -a $GITEA_ENV run: |
current_version=$(${BLOG_FOLDER}/hugo version | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+')
echo "current_version=$current_version | tee -a $GITEA_ENV
- name: Verify latest Hugo version - name: Verify latest Hugo version
run: echo "latest_version=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep -oP '\"tag_name\": \"\K[^\"]+')" | tee -a $GITEA_ENV run: |
latest_version=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep -oP '"tag_name": "\K[^"]+')
echo "latest_version=$latest_version" | tee -a $GITEA_ENV
- name: Download latest Hugo version - name: Download latest Hugo version
if: env.current_version != env.latest_version if: env.current_version != env.latest_version