mirror of
https://gitea.0xace.cc/rust/github-release-bot.git
synced 2024-11-25 13:56:39 +00:00
21 lines
428 B
Bash
21 lines
428 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
if [[ -z "${TOKEN}" ]]; then
|
||
|
echo "Must set Telegram token"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [[ -z "${CHATID}" ]]; then
|
||
|
echo "Must set Telegram chat id"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
INTERVAL="${INTERVAL:-28800}"
|
||
|
SPREAD="${SPREAD:-600}"
|
||
|
CONFIG="${CONFIG:-config.yaml}"
|
||
|
DATADIR="${DATADIR:-data}"
|
||
|
|
||
|
/opt/github-release-bot --token ${TOKEN} --chatid ${CHATID} --interval ${INTERVAL} --spread ${SPREAD} --config ${CONFIG} --datadir ${DATADIR}
|
||
|
|