From e846a16265a59d7b2577b359e985c765d4c2fa01 Mon Sep 17 00:00:00 2001 From: Vaisakh Murali Date: Tue, 13 Feb 2024 09:53:09 +0530 Subject: [PATCH] CI: fix telegram message push Change-Id: I5a86ef378c73bf4b79633b6c5d40d351aa91e01a --- .github/workflows/toolchain-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/toolchain-build.yml b/.github/workflows/toolchain-build.yml index 478421c..c74139f 100644 --- a/.github/workflows/toolchain-build.yml +++ b/.github/workflows/toolchain-build.yml @@ -111,5 +111,5 @@ jobs: - name: Send telegram messages run: | curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" -d chat_id="${CHAT_ID}" -d "disable_web_page_preview=true" -d "parse_mode=html" -d text="It's $(date +%A) my dudes!" - percentage=$(date +'%j' | awk '{print int($0 / 366 * 100)}') - curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" -d chat_id="${CHAT_ID}" -d "disable_web_page_preview=true" -d "parse_mode=html" -d text="The year is $(percentage)% complete. Time is flying." + curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" -d chat_id="${CHAT_ID}" -d "disable_web_page_preview=true" -d "parse_mode=html" -d text="The year is $(date +'%j' | awk '{print int($0 / 365 * 100)}')% complete. Time is flying." +