From ff55c22ed45851656bdbf780a72cd00af01a9216 Mon Sep 17 00:00:00 2001 From: Henrik <15855905+high3eam@users.noreply.github.com> Date: Sun, 9 Feb 2025 21:14:18 +0100 Subject: [PATCH] Update release-nr-mod.yml --- .github/workflows/release-nr-mod.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release-nr-mod.yml b/.github/workflows/release-nr-mod.yml index 844b1cc..c628769 100644 --- a/.github/workflows/release-nr-mod.yml +++ b/.github/workflows/release-nr-mod.yml @@ -61,3 +61,19 @@ jobs: git add updaterNR.json git commit -m "Update updaterNR.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_nr_platform_mod_v${{ env.MOD_VERSION }}.zip" \ + -F caption="New NR 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_nr_platform_mod_v${{ env.MOD_VERSION }}.zip" \ + -F caption="New NR Module Release ${{ env.RELEASE_TAG }}" \ + "https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_2}"