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

22 lines
679 B
YAML
Raw Normal View History

2024-05-03 22:53:42 -04:00
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 }}
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 }}"