mirror of
https://github.com/outbackdingo/firmware.git
synced 2026-01-27 10:19:01 +00:00
[no ci] Workflow: remove telegram error notification
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -12,9 +12,6 @@ on:
|
||||
|
||||
env:
|
||||
TAG_NAME: latest
|
||||
TG_TOKEN: ${{secrets.TELEGRAM_TOKEN_BOT_OPENIPC}}
|
||||
TG_CHANNEL: ${{secrets.TELEGRAM_CHANNEL_OPENIPC_DEV}}
|
||||
TG_OPTIONS: -s -o /dev/null -w %{http_code}
|
||||
|
||||
jobs:
|
||||
buildroot:
|
||||
@@ -226,15 +223,7 @@ jobs:
|
||||
TG_MSG="Commit: ${GIT_HASH}\nBranch: ${GIT_BRANCH}\nTag: ${TAG_NAME}\nTime: ${TIME}\n\n"
|
||||
TG_ICON="\xE2\x9C\x85 GitHub Actions"
|
||||
TG_HEADER=$(echo -e ${TG_MSG}${TG_ICON})
|
||||
HTTP=$(curl ${TG_OPTIONS} https://api.telegram.org/bot${TG_TOKEN}/sendDocument -F chat_id=${TG_CHANNEL} -F caption="${TG_HEADER}" -F document=@${NORFW})
|
||||
echo Telegram response: ${HTTP}
|
||||
|
||||
- name: Send error
|
||||
if: github.event_name != 'pull_request' && failure()
|
||||
run: |
|
||||
TG_WARN="Error: ${{matrix.platform}}_${{matrix.release}}\n"
|
||||
TG_MSG="Commit: ${GIT_HASH}\nBranch: ${GIT_BRANCH}\nTag: ${TAG_NAME}\n\n"
|
||||
TG_ICON="\xE2\x9A\xA0 GitHub Actions"
|
||||
TG_HEADER=$(echo -e ${TG_WARN}${TG_MSG}${TG_ICON})
|
||||
HTTP=$(curl ${TG_OPTIONS} https://api.telegram.org/bot${TG_TOKEN}/sendMessage -F chat_id=${TG_CHANNEL} -F text="${TG_HEADER}")
|
||||
TG_TOKEN=${{secrets.TELEGRAM_TOKEN_BOT_OPENIPC}}
|
||||
TG_CHANNEL=${{secrets.TELEGRAM_CHANNEL_OPENIPC_DEV}}
|
||||
HTTP=$(curl -s -o /dev/null -w %{http_code} https://api.telegram.org/bot${TG_TOKEN}/sendDocument -F chat_id=${TG_CHANNEL} -F caption="${TG_HEADER}" -F document=@${NORFW})
|
||||
echo Telegram response: ${HTTP}
|
||||
|
||||
Reference in New Issue
Block a user