diff --git a/.github/workflows/toolchain-build.yml b/.github/workflows/toolchain-build.yml index 478421c..edcb4a3 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." + export percentage=$(date +'%j' | awk '{print int($0 / 365 * 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." +