Fix environment variable names

This commit is contained in:
PapaTutuWawa 2023-08-19 12:59:33 +02:00
parent bd51cb6b0d
commit b9798dcc3a

View File

@ -1,8 +1,8 @@
#!/bin/bash
if [[ "${WOODPECKER_BUILD_STATUS}" = "success" ]]; then
MESSAGE="✔️ Build for ${WOODPECKER_COMMIT_SHA} on ${WOODPECKER_REPO_OWNER}/${WOODPECKER_REPO_NAME} succeeded."
if [[ "${CI_BUILD_STATUS}" = "success" ]]; then
MESSAGE="✔️ Build for ${CI_COMMIT_SHA} on ${CI_REPO} succeeded."
else
MESSAGE="❌ Build for ${WOODPECKER_COMMIT_SHA} on ${WOODPECKER_REPO_OWNER}/${WOODPECKER_REPO_NAME} failed.\nSee ${WOODPECKER_BUILD_LINK}"
MESSAGE="❌ Build for ${CI_COMMIT_SHA} on ${CI_REPO} failed on ${CI_MACHINE} (${CI_SYSTEM_ARCH}).\nSee ${CI_BUILD_LINK}"
fi
SERVER_DETAILS=""