mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
fixing env var (#1043)
This commit is contained in:
parent
5c34d91865
commit
d7b8b03267
@ -2,6 +2,7 @@
|
||||
. /home/ubuntu/.bashrc
|
||||
export PATH="/usr/local/bin:/usr/bin:/bin"
|
||||
|
||||
|
||||
ERROR=$(bash ./reload_website.sh 2>&1)
|
||||
|
||||
if ! [ $? -eq 0 ]; then
|
||||
@ -10,4 +11,4 @@ if ! [ $? -eq 0 ]; then
|
||||
THREAD_TS="$( jq -r '.ts' <<< "${RESPONSE}")"
|
||||
DATA=$( jo text="$(echo "\`\`\`'$ERROR'\`\`\`")" channel=$CHANNELID thread_ts="'$THREAD_TS'")
|
||||
_=$(curl https://slack.com/api/chat.postMessage -X POST -H 'Content-type: application/json; charset=utf-8' -H "Authorization: Bearer ${TOKEN}" --data "$DATA")
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user