From 630ed3750c2c7b7da9e60c877d3d9784a462c2a8 Mon Sep 17 00:00:00 2001 From: Tahir Hashmi Date: Sun, 3 Jul 2022 18:32:16 +0700 Subject: [PATCH] Fix for 3 digit hugo version numbers. --- action.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.sh b/action.sh index 49974f1..3b5b242 100755 --- a/action.sh +++ b/action.sh @@ -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}