Skip to content

Commit

Permalink
Merge pull request #15 from codemartial/fix-14
Browse files Browse the repository at this point in the history
Fix for 3 digit hugo version numbers.
  • Loading branch information
victoriadrake authored Jul 7, 2022
2 parents bc0ca93 + 630ed37 commit 54235c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm init -y && npm install -y postcss postcss-cli autoprefixer
echo '🤵 Install Hugo'
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name')
mkdir tmp/ && cd tmp/
curl -sSL https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION: -6}_Linux-64bit.tar.gz | tar -xvzf-
curl -sSL https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION: -7}_Linux-64bit.tar.gz | tar -xvzf-
mv hugo /usr/local/bin/
cd .. && rm -rf tmp/
cd ${GITHUB_WORKSPACE}
Expand Down

0 comments on commit 54235c5

Please sign in to comment.