From 62604b44f0d605e6f1e540310f26909388c8b420 Mon Sep 17 00:00:00 2001 From: Vaisakh Murali Date: Sat, 24 Feb 2024 18:47:24 +0530 Subject: [PATCH] CI: post year completion message with upto 2 decimal point precision Change-Id: I919857f6decd0bef3a32f8794722afd31b624236 --- .github/workflows/toolchain-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/toolchain-build.yml b/.github/workflows/toolchain-build.yml index 96a4722..151f35c 100644 --- a/.github/workflows/toolchain-build.yml +++ b/.github/workflows/toolchain-build.yml @@ -112,5 +112,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!" - 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." + 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 '{printf "%.2f\n", $0 / 365.25 * 100}')% complete. Time is flying."