mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-10-05 18:50:43 +09:00
- 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
14 lines
320 B
Bash
Executable File
14 lines
320 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
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
|