added verbosity
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 12s

This commit is contained in:
2026-02-01 18:50:36 +01:00
parent 9463c44034
commit 2e333ce882

View File

@@ -12,10 +12,13 @@ if [ -z "${APP_VERSION}" ]; then
APP_VERSION=${VERSIONINPUT}
fi
fi
echo "Version: ${APP_VERSION}"
# Get project commit id and URL
COMMIT_ID=$(git log HEAD --oneline | awk '{print $1}' | head -n1)
COMMIT_URL="$(git remote get-url origin | sed 's/\.git$//g;s/:/\//;s/git@/https:\/\//')/commit/${COMMIT_ID}"
echo "Commit ID: ${COMMIT_ID}"
echo "Commit URL: ${COMMIT_URL}"
# Get the theme used and its commit id and URL
THEME=$(cat hugo.yaml | grep "theme:" | awk '{print $2}' | sed 's/"//g')