From b9798dcc3a7542b608e16dadb86a1da17ea9f5c8 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 19 Aug 2023 12:59:33 +0200 Subject: [PATCH] Fix environment variable names --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index dc35f5d..04c2146 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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=""