From 9740ac233aa72960f77f9e063bbf5137abf5bfeb Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:36:44 +0530 Subject: [PATCH] Workflows: set HUGO_VERSION to the user value if available, or else default (cherry picked from commit 08f15e3843f39c5da318066d83b22ad5130667eb) --- .github/workflows/gh-pages.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4d35f1de..c8e7b820 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -38,11 +38,8 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: "0.112.4" + HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.112.4' }} steps: - - name: Check version - if: ${{ github.event.inputs.hugoVersion }} - run: export HUGO_VERSION="${{ github.event.inputs.hugoVersion }}" - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \