wgtunnel/.github/workflows/on-publish.yml

22 lines
677 B
YAML
Raw Permalink Normal View History

name: on-publish
2024-05-03 22:53:42 -04:00
on:
release:
types: [ published ]
2024-05-03 22:53:42 -04:00
jobs:
on-publish:
name: On publish
2024-05-03 22:53:42 -04:00
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 }}
2024-05-08 17:30:00 -04:00
https://github.com/zaneschepke/wgtunnel/releases/tag/${{ github.event.release.tag_name }}'
2024-05-03 22:53:42 -04:00
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 }}"