From af7300a8150f6de35535bed1ce8a4da33db752ef Mon Sep 17 00:00:00 2001 From: Henrik <15855905+high3eam@users.noreply.github.com> Date: Sun, 9 Feb 2025 21:13:08 +0100 Subject: [PATCH] Update release-lte-mod.yml --- .github/workflows/release-lte-mod.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release-lte-mod.yml b/.github/workflows/release-lte-mod.yml index b1023d1..a917a34 100644 --- a/.github/workflows/release-lte-mod.yml +++ b/.github/workflows/release-lte-mod.yml @@ -61,3 +61,19 @@ jobs: git add updaterLTE.json git commit -m "Update updaterLTE.json for version ${{ env.MOD_VERSION }}" git push + + - name: Send to Telegram + env: + BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} + CHAT_ID_1: ${{ secrets.TELEGRAM_CHAT_ID_1_GROUP }} + CHAT_ID_2: ${{ secrets.TELEGRAM_CHAT_ID_2 }} + run: | + # Send to first chat + curl -F document=@"p9_lte_combos_mod_v${{ env.MOD_VERSION }}.zip" \ + -F caption="New LTE Module Release ${{ env.RELEASE_TAG }}" \ + "https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_1}" + + # Send to second chat + curl -F document=@"p9_lte_combos_mod_v${{ env.MOD_VERSION }}.zip" \ + -F caption="New LTE Module Release ${{ env.RELEASE_TAG }}" \ + "https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_2}"