mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-10-05 02:30:44 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user