From 8af88c96a99741c01cd608c27212f981ee65be71 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Wed, 7 May 2025 22:29:35 +0200 Subject: [PATCH] Split commands for better readability --- .gitea/workflows/deploy_blog.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy_blog.yml b/.gitea/workflows/deploy_blog.yml index d13ec33..93c6146 100644 --- a/.gitea/workflows/deploy_blog.yml +++ b/.gitea/workflows/deploy_blog.yml @@ -20,10 +20,14 @@ jobs: git reset --hard origin/main - 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 - 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 if: env.current_version != env.latest_version