Skip to content

Commit

Permalink
CI: split telegram message sending
Browse files Browse the repository at this point in the history
Change-Id: I898f15bb08139f0909b6cbc62ab4e1d45dc2dac0
  • Loading branch information
mvaisakh committed Feb 13, 2024
1 parent 48bfecb commit 693c44f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/toolchain-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ jobs:
./bin/arm-eabi-gcc -v 2>&1 | tee /tmp/gcc-arm-version
./bin/arm-eabi-ld.lld -v 2>&1 | tee /tmp/lld-arm-version
bash "$script_dir/strip-binaries.sh"
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!"
- name: Create tarball
run: |
tar -cf eva-gcc-arm-$(/bin/date -u '+%d%m%Y%I%M').xz *
Expand All @@ -104,3 +103,11 @@ jobs:
run: echo "TAG_NAME='GCC Build $(date -u +%d%m%Y%I%M)'" >> $GITHUB_ENV
- name: Create Release
run: gh release create ${{ env.TAG_NAME }} --generate-notes -p *.zip

send-day:
runs-on: ubuntu-latest

steps:
- 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!"

0 comments on commit 693c44f

Please sign in to comment.