Skip to content

Commit bcd75b6

Browse files
committed
set HUGO_VERSION to the user value if available, or else default
1 parent 944ddc3 commit bcd75b6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/gh-pages.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,8 @@ jobs:
3838
build:
3939
runs-on: ubuntu-latest
4040
env:
41-
HUGO_VERSION: "0.112.4"
41+
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.112.4' }}
4242
steps:
43-
- name: Check version
44-
if: ${{ github.event.inputs.hugoVersion }}
45-
run: export HUGO_VERSION="${{ github.event.inputs.hugoVersion }}"
4643
- name: Install Hugo CLI
4744
run: |
4845
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \

0 commit comments

Comments
 (0)