From 5d3727a1262b072094be349fdd5326f8f34e4060 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 17 Dec 2024 17:30:46 +0800 Subject: [PATCH] =?UTF-8?q?Chore:=20=E4=BD=BF=E7=94=A8=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=20HUGO=5FVERSION=20=E6=8E=A7=E5=88=B6=20Hugo?= =?UTF-8?q?=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 3 ++- .github/workflows/update-theme.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7b95bee..2edb0b5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,7 +59,8 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: latest + # use the environment variable HUGO_VERSION as the hugo version, if not set, use `latest`. + hugo-version: ${{ vars.HUGO_VERSION || 'latest' }} extended: true - name: Hugo build run: hugo --gc --minify --logLevel info diff --git a/.github/workflows/update-theme.yml b/.github/workflows/update-theme.yml index ec9a37b..23c8c36 100644 --- a/.github/workflows/update-theme.yml +++ b/.github/workflows/update-theme.yml @@ -17,7 +17,8 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: latest + # use the environment variable HUGO_VERSION as the hugo version, if not set, use `latest`. + hugo-version: ${{ vars.HUGO_VERSION || 'latest' }} extended: true - name: Update theme