fix(entrypoint): unset empty INPUT_MESSAGE_THREAD_ID

- The runner exports every declared input as an env var even when unset,
  and drone-telegram 1.5.0 fails to parse an empty string for the
  integer message.thread.id flag
This commit is contained in:
Bo-Yi Wu
2026-08-16 10:13:31 +08:00
parent f8121d9e5a
commit fd541f19b0
+4
View File
@@ -6,4 +6,8 @@ export GITHUB="true"
[ -n "$*" ] && export TELEGRAM_MESSAGE="$*"
# The runner exports every declared input as an env var even when unset,
# and drone-telegram rejects an empty string for this integer flag.
[ -z "${INPUT_MESSAGE_THREAD_ID:-}" ] && unset INPUT_MESSAGE_THREAD_ID
/bin/drone-telegram