mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-12-02 07:35:30 +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:
1 file changed
+4
@@ -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