From ad53fca92824f1a72ab2c8ab2b7348fa3402dbf3 Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Fri, 3 May 2024 22:53:42 -0400 Subject: [PATCH] Create publish-workflow.yml --- .github/workflows/publish-workflow.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/publish-workflow.yml diff --git a/.github/workflows/publish-workflow.yml b/.github/workflows/publish-workflow.yml new file mode 100644 index 0000000..49d0615 --- /dev/null +++ b/.github/workflows/publish-workflow.yml @@ -0,0 +1,21 @@ +name: Release Updates Workflow + +on: + release: + types: [published] + + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Send Telegram Message + run: | + msg_text='${{ github.actor }} published a new release: + Release: ${{ github.event.release.tag_name }} + ${{ github.event.release.body }} + ${{ github.event.release.url }}' + curl -s -X POST 'https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage' \ + -d "chat_id=${{ secrets.TELEGRAM_TO }}&text=${msg_text}&message_thread_id=${{ secrets.TELEGRAM_TOPIC }}"