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 #!/bin/bash
if [[ "${WOODPECKER_BUILD_STATUS}" = "success" ]]; then if [[ "${CI_BUILD_STATUS}" = "success" ]]; then
MESSAGE="✔️ Build for ${WOODPECKER_COMMIT_SHA} on ${WOODPECKER_REPO_OWNER}/${WOODPECKER_REPO_NAME} succeeded." MESSAGE="✔️ Build for ${CI_COMMIT_SHA} on ${CI_REPO} succeeded."
else 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 fi
SERVER_DETAILS="" SERVER_DETAILS=""