Skip to content

Commit

Permalink
set HUGO_VERSION to the user value if available, or else default
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Feb 23, 2024
1 parent 944ddc3 commit bcd75b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit bcd75b6

Please sign in to comment.